Skip to content

Commit

Permalink
chore(ci): update cicd
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Jul 21, 2023
1 parent 9971bf2 commit 3c55f3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
# Check code format
check_cargo_fmt:
Expand All @@ -25,13 +28,14 @@ jobs:
name: Release Please
needs: check_cargo_fmt
runs-on: ubuntu-latest
if: github.repository == 'chawyehsu/hok' && github.ref == 'refs/heads/main' && github.event_name == 'push' && contains(toJSON(github.event.commits.*.message), 'chore(release)')
if: github.repository == 'chawyehsu/hok' && github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: rust
path: crates/hok
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
Expand Down

0 comments on commit 3c55f3d

Please sign in to comment.