Skip to content

Conversation

@awesome-doge
Copy link
Member

Summary

  • 修復 GitHub Actions deploy job 的條件判斷
  • 確保只在以下情況才執行部署:
    1. github.ref == 'refs/heads/master' - master 分支
    2. github.event_name == 'push' - push 事件(非 PR)
    3. github.repository == 'cypherpunks-core/cypherpunks-core.github.io' - 主 repo

問題

PR #58 merge 後 deploy 失敗,因為 fork repo 的 PR 觸發了 deploy job,但 GitHub Pages 設定只允許從特定分支部署。

Test plan

  • PR 的 CI 應該跳過 deploy job
  • Merge 到 master 後應正常部署

@awesome-doge awesome-doge merged commit 4cd1707 into cypherpunks-core:master Dec 15, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant