Skip to content

#26 ci: replace deprecated codecov/test-results-action with codecov-a… #16

#26 ci: replace deprecated codecov/test-results-action with codecov-a…

#26 ci: replace deprecated codecov/test-results-action with codecov-a… #16

Workflow file for this run

name: Release-plz
on:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
jobs:
release-plz-release:
name: Release-plz release
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'RAprogramm' }}
environment: release
permissions:
contents: read
id-token: write
timeout-minutes: 30
steps:
- name: Mint GitHub App token
id: app_token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ secrets.RELEASE_PLZ_CLIENT_ID }}
private-key: ${{ secrets.RELEASE_PLZ_APP_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
token: ${{ steps.app_token.outputs.token }}
- name: Install stable Rust
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
- name: Authenticate to crates.io
id: crates_auth
uses: rust-lang/crates-io-auth-action@bbd81622f20ce9e2dd9622e3218b975523e45bbe # v1
- name: Run release-plz
uses: release-plz/action@064f4d1e36c843611ddf013be726beaa4ad804db # v0.5
with:
command: release
env:
GITHUB_TOKEN: ${{ steps.app_token.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ steps.crates_auth.outputs.token }}
release-plz-pr:
name: Release-plz PR
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'RAprogramm' }}
needs: release-plz-release
timeout-minutes: 30
steps:
- name: Mint GitHub App token
id: app_token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ secrets.RELEASE_PLZ_CLIENT_ID }}
private-key: ${{ secrets.RELEASE_PLZ_APP_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
token: ${{ steps.app_token.outputs.token }}
- name: Install stable Rust
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable
- name: Run release-plz
uses: release-plz/action@064f4d1e36c843611ddf013be726beaa4ad804db # v0.5
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ steps.app_token.outputs.token }}