Cargo Publish #7
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: Cargo Publish | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'The version of the pact broker cli to release as' | |
| required: true | |
| jobs: | |
| publish_crate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - name: cargo login | |
| run: |- | |
| echo "${{ secrets.CRATES_IO_API_TOKEN }}" | cargo login | |
| - name: Publish to crates.io | |
| run: cargo publish |