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

Fix GitHub Pages build #520

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Conversation

Haprog
Copy link
Contributor

@Haprog Haprog commented Feb 14, 2024

Adds a custom GitHub Action for Jekyll build to be used instead of the zero-config classic Pages build (which is now broken as it uses actions/jekyll-build-pages@v1.0.11 where 1.0.10 and 1.0.11 have problems). This gives us more control over the build stack/dependencies. This action/workflow is based on the generic jekyll.yml workflow template which (I think) is more flexible compared to the jekyll-gh-pages.yml template (which uses actions/jekyll-build-pages, another Ruby based Docker image to do the actual building with some additional dependencies and configuration).

After merge: The Pages source needs to be configured in repository settings: Settings > Pages > Source: GitHub Actions.

This change has been tested to work in my fork with the blog build deployed to https://haprog.github.io/solita.github.com/ (along with extra baseurl fixes that are not included in this PR as they're not necessary here)

Also updates bundler dependencies (Gemfile.lock) using bundle lock --update. Bundler version is specified in Dockerfile (for local testing) and in jekyll.yml (for CI build).

Related docs:

Fixes #519

Adds a custom GitHub Action for Jekyll build to be used instead of the zero-config classic Pages build. This gives us more control over the build stack/dependencies. The Pages source needs to be configured in repository settings: Settings > Pages > Source: GitHub Actions.

Fixes solita#519
Updates bundler dependencies (`Gemfile.lock`) using `bundle lock --update`. Bundler version is specified in `Dockerfile` (for local testing) and in `jekyll.yml` (for CI build).
@jarnovayrynen jarnovayrynen merged commit 649bfc2 into solita:master Feb 15, 2024
1 check passed
@Haprog Haprog deleted the fix-gh-pages-build branch February 15, 2024 06:14
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.

GitHub Pages build is broken
2 participants