gbdev / gbdev/gb-asm-tutorial

GitHub Pages Deployment Error on Forks

未關閉
#167 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
good first issue
主要語言
Assembly
星號
179
分支
64
平均合併
7 天 22 小時
30 天內合併 PR
1

描述

Any fork of this repository upon each commit attempts to publish a GitHub Pages site of the changes being made to the repository, and then fails to do so. I am unfortunately less familiar with GitHub actions than I would like to be so I am unsure if this is even something that can be avoided. But it would be very nice if it could. The error messages involved can be viewed [here](https://github.com/Les-Wet/gb-asm-tutorial/actions/runs/21280535229) as an example and are shown below as well:

```console
Deploy to GitHub pages
Error: Failed to create deployment (status: 404) with build version 13ce6651d0d00a7d4a855f3d2f03d7d756f9f0e3. Request ID A001:748CB:4D81E55:4F0C036:69733936 Ensure GitHub Pages has been enabled: https://github.com/Les-Wet/gb-asm-tutorial/settings/pages
```

```console
HttpError: Not Found
at /home/runner/work/_actions/actions/deploy-pages/v4/node_modules/@octokit/request/dist-node/index.js:124:1
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at createPagesDeployment (/home/runner/work/_actions/actions/deploy-pages/v4/src/internal/api-client.js:125:1)
at Deployment.create (/home/runner/work/_actions/actions/deploy-pages/v4/src/internal/deployment.js:74:1)
at main (/home/runner/work/_actions/actions/deploy-pages/v4/src/index.js:30:1)
```

Is there maybe some kind of conditional statement we could add to [build_and_deploy.yaml](https://github.com/gbdev/gb-asm-tutorial/blob/master/.github/workflows/build-and-deploy.yml) to not run this action if running on a fork?

貢獻指南

開啟貢獻指南

研究方向

從 .github/workflows/build-and-deploy.yml 開始,檢查 Deploy to GitHub pages job,尤其是它對 fork 的行為。查看連結的失敗 Actions 執行,以確認 404 條件。完成的標準是 fork 提交不再嘗試進行 Pages 部署,而該部署會因 Pages 未啟用而失敗。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
github-actions
領域
ci-cd
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。