Skip to content
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

Deploy to GitHub Pages #2

Closed
alinnert opened this issue Feb 7, 2019 · 2 comments
Closed

Deploy to GitHub Pages #2

alinnert opened this issue Feb 7, 2019 · 2 comments

Comments

@alinnert
Copy link

alinnert commented Feb 7, 2019

I'm trying to use this action to build a static site that then gets published to GitHub Pages. I'm using the variant where the site gets served from the docs folder. But for some reason this doesn't work.

By this I mean the changes made by the automated build process get successfully pushed back into the repository. But these changes don't get deployed to gh-pages. On the other hand, the changes I make on and push from my local machine do get deployed.

Do you, by any chance, know why this is happening? Or is there a different approach that is known working?

@alinnert
Copy link
Author

alinnert commented Feb 7, 2019

Wow, I just found the answer to this in this issue: maxheld83/ghpages#1

You can "fix" it by using a manually generated Personal Access Tokens instead of GITHUB_TOKEN.

@elstudio
Copy link
Owner

Super!

One other option would be to use an action like https://github.com/peaceiris/actions-gh-pages, which seems to work fine with the built-in secrets.GITHUB_TOKEN.

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

No branches or pull requests

2 participants