Skip to content

Commit

Permalink
chore: backport release-plz action
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudy committed Dec 8, 2024
1 parent 9a92559 commit ab0cb21
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
name: Release

permissions:
pull-requests: write
contents: write

on:
release:
types:
- published
push:
branches:
- main

jobs:
publish:
Expand All @@ -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 }}

0 comments on commit ab0cb21

Please sign in to comment.