diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index cc6305b..6e4bb66 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -10,7 +10,29 @@ on: - main jobs: - release-plz: + release-plz-release: + name: Release-plz release + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'Krahos' }} + permissions: + contents: write + steps: + - &checkout + name: Checkout repository + uses: actions/checkout@v5 + with: + fetch-depth: 0 + - &install-rust + name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + - name: Run release-plz + uses: release-plz/action@v0.5 + with: + command: release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + release-plz-pr: name: Release-plz runs-on: ubuntu-latest if: ${{ github.repository_owner == 'Krahos' }}