deployment not working #1190
Replies: 3 comments 4 replies
-
Continuing to have problems with this. Using this action I don't see the content served by github.io updating although I do see the files committed to gh-pages branch of my repo. |
Beta Was this translation helpful? Give feedback.
-
This is what I did in the end: https://github.com/jamiepratt/jointprob-clerk/blob/master/.github/workflows/main.yml I based my workflow on another: https://github.com/actions/starter-workflows/blob/main/pages/jekyll-gh-pages.yml And just replaced the jekyll build with the clojure and clerk build process. Your github-pages-deploy-action didn't work for me. |
Beta Was this translation helpful? Give feedback.
-
I had this same issue, and I think it's because of a misunderstanding of how this action works. The action gets configured in your workflow. But you do not set "Github actions" as a source for Github pages. Make sure the pages source is "Deploy from branch" with the "gh-pages" branch selected. Everytime you push, (or whatever trigger you configured), this action overwrites the contents of the gh-pages branch, thereby deploying the site. This action works differently than most deploy actions because it simply sets the contents of the gh-pages branch, instead of generating and uploading an artifact. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm trying to do an automatic custom build of some static pages to serve through Github pages.
The workflow runs without errors and the deployment seems to work:
And I see a gh-pages branch has been created and an index.html has been added to it.
But my pages for some reason were not served by github.io:
https://jamiepratt.github.io/jointprob-clerk/
Showed a 404.
The pages were there in the gh-pages branch.
So I switched to the 'deploy from branch' option in "Settings -> Pages" of my repository.
The files did get deployed. But they are not updated when I do a new push of my master branch.
I have switched back to source "github action" to serve the files. And the files are getting deployed to the gh-pages branch but I can only update what I see at https://jamiepratt.github.io/jointprob-clerk/ by going to trigger the workflow action "pages-build-deployment" which I can re-run clicking through from here:
Jamie
Beta Was this translation helpful? Give feedback.
All reactions