Merge pull request #5 from strawlab/release-plz-2026-08-07T09-04-54Z #4
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| release: | |
| name: Publish release | |
| if: github.repository_owner == 'strawlab' | |
| runs-on: ubuntu-latest | |
| environment: release | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: write | |
| id-token: write | |
| pull-requests: read | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Fetch release history | |
| run: git fetch --force --prune --tags --unshallow | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable | |
| - name: Publish crate and GitHub release | |
| uses: release-plz/action@2eb1d8bcb770b4c48ccfaad919734b38b51958c9 # v0.5.131 | |
| with: | |
| command: release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN || secrets.GITHUB_TOKEN }} | |
| release-pr: | |
| name: Prepare release PR | |
| if: github.repository_owner == 'strawlab' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: release-plz-${{ github.ref }} | |
| cancel-in-progress: false | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Fetch release history | |
| run: git fetch --force --prune --tags --unshallow | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@4360b52568e2003a75bf9bc1d59f33a8e3fc893c # stable | |
| - name: Create or update release PR | |
| uses: release-plz/action@2eb1d8bcb770b4c48ccfaad919734b38b51958c9 # v0.5.131 | |
| with: | |
| command: release-pr | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN || secrets.GITHUB_TOKEN }} |