-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: gitee mirror action don't work when push gh-pages only #2742
Conversation
Gatsby Cloud Build Report🚩 Your build failed. See the build logs here Errors API Extractor Error: Error parsing /usr/src/app/www/api-extractor.json: The "mainEntryPointFilePath" path does not exist: /usr/src/app/www/lib/api.d.ts |
/rebase |
@@ -16,7 +16,8 @@ | |||
"site:develop": "gatsby develop --open -H 0.0.0.0", | |||
"site:build": "npm run site:clean && gatsby build --prefix-paths", | |||
"site:clean": "gatsby clean", | |||
"site:deploy": "npm run site:build && gh-pages -d public", | |||
"site:deploy": "npm run site:build && npm run site:copy-mirror-action && gh-pages -d public", | |||
"site:copy-mirror-action": "mkdir -p public/.github/workflows && cp .github/workflows/mirror.yml public/.github/workflows", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是啥原理,把 mirror 的 action 放到 website 的目录中,然后在什么时机去执行这个 action?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
推测原因是 gh-pages 没有 .github/workflows/mirror.yml
,所以单独 push 这个分支时不会触发同步 action,解决方式是这个分支里加上这个文件。
/rebase |
203b24a
to
03e50b9
Compare
需要加个 rebase.yml:https://github.com/cirrus-actions/rebase |
Checklist
npm test
passesDescription of change
See antvis/gatsby-theme-antv#209