-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
Action passed with silent failure when no gh-pages branch existed #31
Comments
Thank you. This issue is related to #29. I will fix this at #28 And, please do not use
Please try the following.
- name: Publish
uses: docker://peaceiris/gh-pages:v2.3.1
env:
+ ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./target/doc
+ with:
+ emptyCommits: true |
I'll take a look. Thanks for the fast response. It may be worth documenting for users what permission the default github token is missing. Here's a list GitHub actions documents https://help.github.com/en/articles/virtual-environments-for-github-actions#github_token-secret. I realize these aren't enough to do everything but easy to miss for users of this action. |
Thank you for your suggestion. There is a bug to deploy to GitHub Pages from GitHub Actions with GitHub team is investigating this problem. We are waiting for replies from them. |
Status update. This worked like a charm after generating a PERSONAL_TOKEN and setting |
Thanks for publishing this action.
I followed the readme instructions but ran into what may be a common but undocumented case.
I'm publishing for the first time and no gh-pages branch exists.
The action proceeds to stage changes but they never get pushed to my PUBLISH_BRANCH
My workflow step is configured with
The text was updated successfully, but these errors were encountered: