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

Deploy to GitHub Pages with custom workflow #25

Merged
merged 34 commits into from
Oct 23, 2023
Merged

Deploy to GitHub Pages with custom workflow #25

merged 34 commits into from
Oct 23, 2023

Conversation

TWiStErRob
Copy link
Owner

@TWiStErRob TWiStErRob commented Oct 23, 2023

Changes:

  • New CI build, deploy, cache, diffjobs
  • builddeploy does jekyll build and publishes the _site using first party (currently beta) actions to GitHub Pages.
  • cache & diff ensure that the content of the website doesn't change unless there's a content-change label on the PR. This prevents tooling upgrades from breaking the site.
  • Some content changes to make sure that content changes don't have false positive diffs (e.g. generated date)

@TWiStErRob TWiStErRob added the content-change Instructs CI to skip verifying contents of the site. label Oct 23, 2023
Error: could not read file /home/runner/work/twisterrob.github.io/twisterrob.github.io/vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.3/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb: Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.3/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.
ERROR: YOUR SITE COULD NOT BE BUILT:
------------------------------------
Invalid date '<%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>': Document 'vendor/bundle/ruby/2.7.0/gems/jekyll-3.9.3/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb' does not have a valid date in the YAML front matter.
@TWiStErRob TWiStErRob temporarily deployed to github-pages-test October 23, 2023 17:42 — with GitHub Actions Inactive
@TWiStErRob TWiStErRob removed the content-change Instructs CI to skip verifying contents of the site. label Oct 23, 2023
@TWiStErRob TWiStErRob added the content-change Instructs CI to skip verifying contents of the site. label Oct 23, 2023
@TWiStErRob TWiStErRob added content-change Instructs CI to skip verifying contents of the site. and removed content-change Instructs CI to skip verifying contents of the site. labels Oct 23, 2023
@TWiStErRob TWiStErRob changed the title Deploy to GitHub Pages manually Deploy to GitHub Pages with custom workflow Oct 23, 2023
@TWiStErRob TWiStErRob merged commit bd86a61 into main Oct 23, 2023
4 checks passed
@TWiStErRob TWiStErRob deleted the pages branch October 23, 2023 21:54
@TWiStErRob TWiStErRob mentioned this pull request Oct 23, 2023
TWiStErRob added a commit that referenced this pull request Oct 25, 2023
[MOD] Use stable dates to prevent unwanted changes.
[FIX] _site excludes and Ruby version to make things work on CI
[ADD] Fix #24: Deploy to GitHub Pages with custom workflow (#25, #26)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use GitHub Actions deployment for GitHub Pages
1 participant