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

Add and config a git branch for github pages #10

Closed
canhnd58 opened this issue May 26, 2021 · 4 comments
Closed

Add and config a git branch for github pages #10

canhnd58 opened this issue May 26, 2021 · 4 comments
Assignees

Comments

@canhnd58
Copy link
Owner

canhnd58 commented May 26, 2021

Automatically build and deploy to github pages after pushing a commit to master branch.

@canhnd58
Copy link
Owner Author

Found something that could be used:

@tung-eh tung-eh self-assigned this May 27, 2021
@tung-eh
Copy link
Collaborator

tung-eh commented May 27, 2021

I added some config to auto-run build command while push to master, but currently the github page isn't using the build folder to serve. Seems like it need to be updated from Settings, could you help with changing @canhnd58 , the build folder is dist/ FYI.

@canhnd58
Copy link
Owner Author

@tung-eh The only folders github pages may use as root dir are / or /docs of branch master or gh-pages. I can only choose among these in the Settings. More importantly, the serving files should be present in the codebase but I don't see any folders dist/ there (and it should not be there).

I think we need to add one more action to .github/workflows/node.js.yml after building to copy the result to branch gh-pages.

@tung-eh
Copy link
Collaborator

tung-eh commented May 27, 2021

Updated! The branch to deploy will be gh-pages from now.

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