Rust Release #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust Release | |
| on: | |
| workflow_dispatch: | |
| workflow_run: | |
| workflows: | |
| - Mega Releaser | |
| types: | |
| - completed | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| publish: | |
| name: Publish to crates.io | |
| runs-on: ubuntu-24.04 | |
| environment: release | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "rust -> target" | |
| # only restore cache for faster publishing, don't save back results | |
| save-if: false | |
| # use the cache from rust-lint/stable | |
| prefix-key: "rust-client-stable" | |
| - name: Publish | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
| run: cargo publish --manifest-path rust/Cargo.toml |