From d92a695005e10e2575bce32d5b296c30df384511 Mon Sep 17 00:00:00 2001 From: Tan <75737870+Tanyuu@users.noreply.github.com> Date: Fri, 1 Sep 2023 21:14:45 +0800 Subject: [PATCH] feat: Try using semantic-release to auto release. (#61) Signed-off-by: Tan <2912363476@qq.com> --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce20b17..9683220 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,6 @@ name: Release -on: workflow_dispatch +on: push env: SHA: ${{ GITHUB.SHA }} @@ -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 @@ -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