Skip to content

Commit

Permalink
Add release-plz for automated releases
Browse files Browse the repository at this point in the history
We already use this tool for `libc`, `libm`, and `compiler-builtins` so
anyone with write access can publish releases. Add the required workflow
here.
  • Loading branch information
tgross35 committed Dec 28, 2024
1 parent 49ee1e9 commit 88ceda8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release-plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- master

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust (rustup)
run: rustup update nightly --no-self-update && rustup default nightly
- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 88ceda8

Please sign in to comment.