Add GitHub Actions workflow for compiling the site#148
Open
tstolarski wants to merge 2 commits into
Open
Conversation
✅ Deploy Preview for peppy-otter-7a55ad ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale
The current latest version of Hugo (v0.160.1) cannot build the site as it is currently due to incompatibilities introduced with new version updates (such as
.Site.IsMultiLingualbeing deprecated and changed tohugo.isMultilingual).In addition, the underlying theme used by the site, hugo-theme-learn, is deprecated and unmaintained (as written in their README). This means updating the site to function with the new Hugo would require a theme change, since incompatible code lives within the dependency as well.
I plan to address this by updating various things in a separate PR, but in order to ensure the changes don't break the functionality or vastly change the design of the site, I needed a way to obtain a local build of the site on its old version for comparison, and I figured that the best way to go about this would be to add a GitHub Actions workflow. This way, other people can also download the build, and in the version-upgrading PR I can update the workflow to use the new version as well.
You can see the run produced by this workflow here, and the built version of the site is available as the
hugo-publicartifact on that page.