Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy Jekyll site to Pages
Copy link
Author

Choose a reason for hiding this comment

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

I'm not sure this can be done like this, but the current versions of jekyll do NOT work with the github-pages Gem, so we have to remove that and use GitHub Actions workflow instead.

Obviously, I cannot tell if this will work because I don't have your tokens/secrets... so let me know if you need me to adjust.


on:
push:
branches: ["gh-pages"]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true

- name: Setup Pages
id: pages
uses: actions/configure-pages@v5

- name: Build with Jekyll
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production

- name: Upload artifact
uses: actions/upload-pages-artifact@v3

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
21 changes: 6 additions & 15 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
source "https://rubygems.org"
ruby RUBY_VERSION

# gem "jekyll", "3.6.2"
gem "jekyll", "~> 4.4"

# to use GitHub Pages
# gem "github-pages", group: :jekyll_plugins

gem "github-pages", "~> 232", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jemoji"
gem 'jekyll-redirect-from'
gem "jekyll-remote-theme"
gem "jemoji"
gem "jekyll-redirect-from"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Windows / WSL does not include zoneinfo files
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem "webrick", "~> 1.8"
gem "webrick", "~> 1.9"
Loading