name: Release-plz
permissions: {}
on:
push: { branches: [main] }
jobs:
release-plz-release:
name: Release-plz release runs-on: ubuntu-24.04
environment: publish
permissions:
contents: write pull-requests: read id-token: write if: ${{ github.repository_owner == 'rust-lang' }}
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 with:
fetch-depth: 0
persist-credentials: false
- name: Install Rust toolchain
run: rustup update stable --no-self-update && rustup default stable
- name: Run release-plz
uses: release-plz/action@8921286633dfa0c4020f7f30bd1c14fe19cbb10e with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-plz-pr:
name: Release-plz PR
runs-on: ubuntu-24.04
permissions:
contents: write pull-requests: write if: ${{ github.repository_owner == 'rust-lang' }}
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 with:
fetch-depth: 0
persist-credentials: false
- name: Install Rust toolchain
run: rustup update stable --no-self-update && rustup default stable
- name: Run release-plz
uses: release-plz/action@8921286633dfa0c4020f7f30bd1c14fe19cbb10e with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}