| 1 | name: Release-plz |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | |
| 8 | jobs: |
| 9 | release-plz-release: |
| 10 | name: Release-plz release |
| 11 | runs-on: ubuntu-latest |
| 12 | if: ${{ github.repository_owner == 'Amanieu' }} |
| 13 | permissions: |
| 14 | contents: write |
| 15 | steps: |
| 16 | - name: Checkout repository |
| 17 | uses: actions/checkout@v4 |
| 18 | with: |
| 19 | fetch-depth: 0 |
| 20 | - name: Install Rust toolchain |
| 21 | uses: dtolnay/rust-toolchain@stable |
| 22 | - name: Run release-plz |
| 23 | uses: release-plz/[email protected] |
| 24 | with: |
| 25 | command: release |
| 26 | env: |
| 27 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 28 | CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
| 29 | |
| 30 | release-plz-pr: |
| 31 | name: Release-plz PR |
| 32 | runs-on: ubuntu-latest |
| 33 | if: ${{ github.repository_owner == 'Amanieu' }} |
| 34 | permissions: |
| 35 | pull-requests: write |
| 36 | contents: write |
| 37 | concurrency: |
| 38 | group: release-plz-${{ github.ref }} |
| 39 | cancel-in-progress: false |
| 40 | steps: |
| 41 | - name: Checkout repository |
| 42 | uses: actions/checkout@v4 |
| 43 | with: |
| 44 | fetch-depth: 0 |
| 45 | - name: Install Rust toolchain |
| 46 | uses: dtolnay/rust-toolchain@stable |
| 47 | - name: Run release-plz |
| 48 | uses: release-plz/[email protected] |
| 49 | with: |
| 50 | command: release-pr |
| 51 | env: |
| 52 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 53 | CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |