Skip to content

Commit

Permalink
chore: add release action
Browse files Browse the repository at this point in the history
Release-As: 0.2.3
  • Loading branch information
soanvig committed Oct 20, 2024
1 parent dd7ef7c commit 7bb2449
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
branches:
- master

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: rust
# The logic below handles the crate publication:
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions-rs/[email protected]
with:
profile: minimal
toolchain: stable
override: true
- run: cargo publish --dry-run --token ${CRATES_TOKEN}
if: ${{ steps.release.outputs.release_created }}
env:
CRATES_TOKEN: ${{secrets.CRATES_TOKEN}}

0 comments on commit 7bb2449

Please sign in to comment.