Update RELEASE_v0.26_MONKEY_BUSINESS.md #15
Workflow file for this run
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: Release net-cli | |
| # Publishes `net-cli` (the unified `net-mesh` command-line tool at | |
| # `crates/net/cli/`) to crates.io. | |
| # | |
| # Tag schema: `cli-v<semver>`. | |
| # | |
| # Required repository secret: `CARGO_REGISTRY_TOKEN` | |
| # Generate at https://crates.io/me with the `publish-update` scope | |
| # restricted to `net-cli` after the first publish completes. The | |
| # first publish requires a wider scope (or a broader account-level | |
| # token) because crates.io scopes can only be set on existing | |
| # crates. | |
| # | |
| # Prebuilt-binary distribution (tarballs, install script, Homebrew | |
| # formula, cargo-binstall metadata) + the `@net-mesh/cli` npm shim | |
| # land in a follow-up release pipeline — out of scope for this | |
| # crates.io-only first slice. | |
| on: | |
| push: | |
| tags: | |
| - "cli-v*" | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| publish: | |
| name: Publish net-cli | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| net/crates/net/target/ | |
| key: ${{ runner.os }}-cargo-publish-cli-${{ hashFiles('**/Cargo.lock') }} | |
| # `net-cli` depends on `net-mesh-sdk` (which depends on | |
| # `net-mesh`). Both must already exist on crates.io at the | |
| # version this crate's Cargo.toml pins, so run `release-crates` | |
| # first when the workspace version bumps. | |
| - name: cargo publish --dry-run (net-cli) | |
| working-directory: net/crates/net/cli | |
| run: cargo publish --dry-run | |
| - name: Publish net-cli | |
| working-directory: net/crates/net/cli | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
| run: cargo publish |