Skip to content

Commit 4cd1707

Browse files
authored
Merge pull request #59 from awesome-doge/fix/ci-deploy-condition
修復 CI:只在主 repo 的 push 事件時部署 Pages
2 parents 5124dec + f8b1091 commit 4cd1707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
path: ./_site
7676

7777
deploy:
78-
if: github.ref == 'refs/heads/master'
78+
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository == 'cypherpunks-core/cypherpunks-core.github.io'
7979
needs: build
8080
runs-on: ubuntu-latest
8181
environment:

0 commit comments

Comments
 (0)