chore: switch release-plz to PAT token for triggering release action … #205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release-plz | |
permissions: | |
pull-requests: write | |
contents: write | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release-plz: | |
name: Release-plz | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.RELEASE_PLZ_TOKEN }} # PAT secret | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install dev-tools | |
run: sudo apt-get install -y --no-install-recommends pkg-config musl-dev musl-tools protobuf-compiler | |
- name: Install deps | |
run: sudo apt-get install -y --no-install-recommends libssl-dev libopus-dev libfdk-aac-dev libsoxr-dev | |
- name: Run release-plz | |
uses: MarcoIeni/release-plz-action@v0.5 | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} # PAT secret |