Skip to content

Add GHA workflow to rebuild and republish site on changes to docs/site#2098

Merged
doug-walker merged 2 commits into
AcademySoftwareFoundation:mainfrom
zachlewis:auto-update-site
Nov 25, 2024
Merged

Add GHA workflow to rebuild and republish site on changes to docs/site#2098
doug-walker merged 2 commits into
AcademySoftwareFoundation:mainfrom
zachlewis:auto-update-site

Conversation

@zachlewis
Copy link
Copy Markdown
Collaborator

Whenever there are changes to files under docs/site on the main branch, this workflow will trigger a rebuild of the contents with Hugo and push updates to the gh-pages branch, taking care to preserve the "old" directory in the gh-pages root, per the instructions in docs/site/README.md.

This should make it easier for contributors to update the contents of the site with a single PR implementing changes to the main branch.

* Replace use of deprecated `.Site.IsMultiLingual` with preferred `hugo.isMultilingual`

* Adjust pagination settings in config.toml

Signed-off-by: Zach Lewis <zachcanbereached@gmail.com>
Whenever a change to a file under "docs/site" is pushed to the `main` branch, rebuild docs/site/homepage with Hugo and publish to `gh-pages` branch, taking care to preserve the contents of the "old" directory.

Signed-off-by: Zach Lewis <zachcanbereached@gmail.com>
Copy link
Copy Markdown
Collaborator

@doug-walker doug-walker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool, thanks Zach!

Copy link
Copy Markdown
Collaborator

@carolalynn carolalynn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!! Thanks Zach!

@doug-walker doug-walker merged commit 203c458 into AcademySoftwareFoundation:main Nov 25, 2024
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

Successfully merging this pull request may close these issues.

3 participants