fix: Add Gemfile and fix Jekyll build workflow

This commit is contained in:
Anderson 2026-01-06 00:27:40 +00:00 committed by GitHub
parent 9cebf53f19
commit 5a81ebab1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 55 additions and 4 deletions

View file

@ -16,24 +16,36 @@ concurrency:
cancel-in-progress: false cancel-in-progress: false
jobs: jobs:
# Build job
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for proper git info
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true # runs 'bundle install' and caches gems
- name: Setup Pages - name: Setup Pages
id: pages
uses: actions/configure-pages@v4 uses: actions/configure-pages@v4
- name: Build with Jekyll - name: Build with Jekyll
uses: actions/jekyll-build-pages@v1 run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
with: env:
source: ./ JEKYLL_ENV: production
destination: ./_site
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with:
path: ./_site
# Deployment job
deploy: deploy:
environment: environment:
name: github-pages name: github-pages

8
.gitignore vendored
View file

@ -18,5 +18,13 @@ vite.config.ts.*
# Environment variables # Environment variables
.env .env
# Jekyll / GitHub Pages
/.bundle/
/vendor/
/_site/
/.jekyll-cache/
/.jekyll-metadata
Gemfile.lock
.env.local .env.local
.env.*.local .env.*.local

31
Gemfile Normal file
View file

@ -0,0 +1,31 @@
source "https://rubygems.org"
# GitHub Pages gem includes Jekyll and common plugins
gem "github-pages", "~> 231", group: :jekyll_plugins
# Additional recommended plugins
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
gem "jekyll-seo-tag", "~> 2.8"
gem "jekyll-sitemap", "~> 1.4"
end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", ">= 1", "< 3"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1", :platforms => [:mingw, :x64_mingw, :mswin]
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
# do not have a Java counterpart.
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
# kramdown v2 ships without the gfm parser by default
gem "kramdown-parser-gfm"
# webrick is no longer bundled with Ruby 3.0+
gem "webrick", "~> 1.8"