[dropshot-api-manager] version 0.2.0 #6
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
| # adapted from https://github.com/taiki-e/cargo-hack/blob/main/.github/workflows/release.yml | |
| name: Publish releases to GitHub | |
| on: | |
| push: | |
| tags: | |
| - "*" | |
| jobs: | |
| dropshot-api-manager-release: | |
| if: github.repository_owner == 'oxidecomputer' && startsWith(github.ref_name, 'dropshot-api-manager-0') | |
| runs-on: ubuntu-latest | |
| environment: release | |
| permissions: | |
| id-token: write # Required for OIDC token exchange | |
| contents: write # Required for creating releases | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: rust-lang/crates-io-auth-action@v1 | |
| id: auth | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install cargo release | |
| uses: taiki-e/install-action@67cc679904bee382389bf22082124fa963c6f6bd # v2 | |
| with: | |
| tool: [email protected],just | |
| - uses: taiki-e/create-gh-release-action@26b80501670402f1999aff4b934e1574ef2d3705 # v1 | |
| with: | |
| prefix: dropshot-api-manager | |
| changelog: CHANGELOG.md | |
| title: $prefix $version | |
| branch: main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - run: just ci-cargo-release | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} |