-
Notifications
You must be signed in to change notification settings - Fork 6
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
The instructions on using GitHub Pages to publish docs are outdated and will stop working on June 30th #92
Comments
UPDATE: See #92 (comment) for how to fix this.
|
So along with the wiki needing updates, we also need to update the shared workflow, right? - https://github.com/ansible-community/github-docs-build/blob/main/.github/workflows/_shared-docs-build-publish-gh-pages.yml |
@samccann using shared workflow would be a bit more tricky — all the callers would have to set up the correct privileges as well. |
No change at is needed to the shared workflow. (The Wiki should be updated though.) |
Hmm, something isn't working correctly yet. When creating a PR or updating it, the docs workflow updates the (Test cases: ansible-collections/community.hrobot#114, felixfontein/ansible-acme#80 - in both cases the (https://github.com/ansible-collections/community.hrobot/blob/gh-pages/.github/workflows/deploy-gh-pages.yml / https://github.com/ansible-collections/community.hrobot/blob/main/.github/workflows/deploy-gh-pages.yml) |
I believe this is expected, events that trigger workflows do not trigger them when the thing was initiated by a workflow, to prevent infinite loops. It's tied to the token, you have to use a PAT to cause those events to trigger workflows normally. This might be something we could instead use the I haven't looked closely at what's been done so far though, I've been AFK for most of the week, and have very little time available, apologies. |
I might have figured out a way to do it: #93 That doesn't require to have the workflow in the |
Ref: ansible-community/github-docs-build#92 (cherry picked from commit bed633b)
Ok, now that #93 is merged, you can (and actually have to, due to an unexpected side-effect: #93 (comment)) update the workflows in your repository as here: ansible-collections/community.sops@03d53d0 EDIT: You still need to do: Go to the repo's settings, the GitHub Pages tab, and change "Build and deployment"'s "Source" from "Deploy from a branch" to "GitHub Actions". Adding the workflow to the |
Ref: ansible-community/github-docs-build#92 (cherry picked from commit bed633b) Co-authored-by: Felix Fontein <[email protected]>
The way setting up GH pages publishing is described on https://github.com/ansible-community/github-docs-build/wiki/Getting-started-with-GitHub-Pages#enabling-pages is outdated and will stop working on June 30th, according to https://www.josephguadagno.net/2024/04/03/migrate-to-github-actions-from-pages-legacy-worker. Despite the mention of Jekyll all over that blog post this also affects publishing raw HTML pages (as used by the shared workflows from this repo).
Fixing this is probably quite easy, you simply need to add a workflow to the
main
branch that handles pushes to thegh-pages
branch and publishes them (look forStatic HTML Workflow Template
in the blog post). I'll try this out later or tomorrow and will report back here how it went.Ref: ansible-community/ansible-build-data#416
The text was updated successfully, but these errors were encountered: