* get rid of async-trait * move rmcp to official-rust-sdk * replace master with main * update readme, change license * fix typo * Update README.md Co-authored-by: Jefry Dewangga <jefrydco@gmail.com> * fix typos --------- Co-authored-by: = <=> Co-authored-by: Jefry Dewangga <jefrydco@gmail.com>
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches: [ release ]
|
|
tags:
|
|
- 'release-*'
|
|
pull_request:
|
|
branches: [ release ]
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
ARTIFACT_DIR: release-artifacts
|
|
|
|
jobs:
|
|
release:
|
|
name: Release crates
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
target
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
restore-keys: ${{ runner.os }}-cargo-
|
|
|
|
- name: Check formatting
|
|
run: cargo fmt --all -- --check
|
|
- name: Run clippy
|
|
run: cargo clippy --all-targets --all-features -- -D warnings
|
|
- name: Cargo login
|
|
run: cargo login ${{ secrets.CRATES_TOKEN }}
|
|
- name: Publish macros dry run
|
|
run: cargo publish -p rmcp-macros --dry-run
|
|
continue-on-error: true
|
|
- name: Publish rmcp dry run
|
|
run: cargo publish -p rmcp --dry-run
|
|
continue-on-error: true
|
|
- name: Publish macro
|
|
if: ${{ startsWith(github.ref, 'refs/tags/release') }}
|
|
continue-on-error: true
|
|
run: cargo publish -p rmcp-macros
|
|
- name: Publish rmcp
|
|
if: ${{ startsWith(github.ref, 'refs/tags/release') }}
|
|
continue-on-error: true
|
|
run: cargo publish -p rmcp
|
|
|