| 1 |
name: Release |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [master] |
| 6 |
|
| 7 |
permissions: |
| 8 |
contents: write |
| 9 |
pull-requests: write |
| 10 |
id-token: write |
| 11 |
|
| 12 |
jobs: |
| 13 |
release: |
| 14 |
name: Release |
| 15 |
runs-on: ubuntu-latest |
| 16 |
|
| 17 |
steps: |
| 18 |
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 19 |
with: |
| 20 |
fetch-depth: 0 |
| 21 |
|
| 22 |
- name: Install Rust |
| 23 |
uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 |
| 24 |
|
| 25 |
- name: release-plz |
| 26 |
uses: MarcoIeni/release-plz-action@2eb1d8bcb770b4c48ccfaad919734b38b51958c9 # v0.5.131 |
| 27 |
env: |
| 28 |
GITHUB_TOKEN: ${{ github.token }} |
| 29 |
id: release-plz |
| 30 |
|
| 31 |
- name: Bump changelog versions |
| 32 |
if: ${{ steps.release-plz.outputs.prs_created == 'true' }} |
| 33 |
env: |
| 34 |
GH_TOKEN: ${{ github.token }} |
| 35 |
run: scripts/bump-changelogs '${{ steps.release-plz.outputs.pr }}' |
| 36 |
|
| 37 |
- name: Update release notes |
| 38 |
if: ${{ steps.release-plz.outputs.releases_created == 'true' }} |
| 39 |
env: |
| 40 |
GH_TOKEN: ${{ github.token }} |
| 41 |
run: scripts/update-release-notes '${{ steps.release-plz.outputs.releases }}' |