Skip to content

Commit

Permalink
feat: Try using semantic-release to auto release. (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: Tan <2912363476@qq.com>
  • Loading branch information
Tanyuu authored Sep 1, 2023
1 parent 26888e3 commit d92a695
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Release

on: workflow_dispatch
on: push

env:
SHA: ${{ GITHUB.SHA }}
Expand Down Expand Up @@ -76,6 +76,7 @@ jobs:
run-semantic-release:
runs-on: ubuntu-latest
needs: build
if: github.repository_owner == 'casbin-net' && github.event_name == 'push'

steps:
- name: Checkout
Expand All @@ -90,6 +91,7 @@ jobs:
release:
runs-on: windows-latest
needs: run-semantic-release
if: github.repository_owner == 'casbin-net' && github.event_name == 'push'

steps:
- name: Checkout
Expand Down

0 comments on commit d92a695

Please sign in to comment.