Skip to content

Commit

Permalink
ci: use release-plz
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetf committed Apr 26, 2024
1 parent 9223286 commit 9cd90a5
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
name: Publish to crates.io
name: Release-plz

permissions:
pull-requests: write
contents: write

on:
push:
# Enable when testing release infrastructure on a branch.
branches:
- build
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- master

jobs:
publish:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
permissions:
contents: write
env:
RUSTFLAGS: --allow unknown-lints --deny warnings
steps:
- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: actions/checkout@v4
- uses: katyo/publish-crates@v2
- name: Checkout repository
uses: actions/checkout@v4
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
dry-run: ${{ !startsWith(github.ref, 'refs/tags/') }}

fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- 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 9cd90a5

Please sign in to comment.