Skip to content

🔧 fix: 优化 GitHub Pages 部署权限配置 #3

🔧 fix: 优化 GitHub Pages 部署权限配置

🔧 fix: 优化 GitHub Pages 部署权限配置 #3

Triggered via push January 19, 2026 01:36
Status Failure
Total duration 1m 5s
Artifacts 1

deploy.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 errors
deploy
Error: Failed to create deployment (status: 400) with build version 52e46715799ebcd1f1ffbd957443dac3faa153c2. Request ID 2F81:2D98DA:5379808:179C72E6:696D8ACD Responded with: Invalid deployment branch and no branch protection rules set in the environment. Deployments are only allowed from gh-pages
deploy
HttpError: Invalid deployment branch and no branch protection rules set in the environment. Deployments are only allowed from gh-pages 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)
deploy
Creating Pages deployment failed

Artifacts

Produced during runtime
Name Size Digest
github-pages Expired
350 KB
sha256:bbcb522101d127537d28cf0afabb696642eae7c1ea2a1e74a2dc09cb344e1fd0