Skip to content

Commit

Permalink
ci: add release-please action
Browse files Browse the repository at this point in the history
  • Loading branch information
moldhouse committed Oct 23, 2024
1 parent e30a6e6 commit 959e5d9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 22 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
- if: ${{ steps.release.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- name: Publish to cargo
env:
CARGO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: cargo publish --token "${CARGO_TOKEN}"
22 changes: 0 additions & 22 deletions .github/workflows/release.yml

This file was deleted.

1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
10 changes: 10 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"last-release-sha": "74c5ca507db8cb62e506600b8f4b41b2223c745a",
"packages": {
".": {
"release-type": "rust"
}
}
}

0 comments on commit 959e5d9

Please sign in to comment.