From ab0cb21917bf3451dd0da4a768c6666c061c0989 Mon Sep 17 00:00:00 2001 From: Alex Rudy Date: Sun, 8 Dec 2024 16:50:40 +0000 Subject: [PATCH] chore: backport release-plz action --- .github/workflows/publish.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d44630c..2f3b8bb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,13 @@ +name: Release + +permissions: + pull-requests: write + contents: write + on: - release: - types: - - published + push: + branches: + - main jobs: publish: @@ -10,13 +16,17 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GH_PAT_PR }} - name: Install rust toolchain uses: dtolnay/rust-toolchain@master with: toolchain: stable - - name: Run cargo publish - run: cargo publish + - name: Run release-plz + uses: MarcoIeni/release-plz-action@v0.5 env: + GITHUB_TOKEN: ${{ secrets.GH_PAT_PR }} CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}