Skip to content

Commit 5fe9ef4

Browse files
Fix GitHub Pages CI warning with GitHub Actions
- Add GitHub Actions workflow for Jekyll builds - Update Gemfile with Jekyll 4.3.0 and required plugins - Add jekyll-feed, jekyll-sitemap, and jekyll-seo-tag plugins - Configure proper exclusions in _config.yml - Remove dependency on deprecated github-pages gem 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent f61c5aa commit 5fe9ef4

File tree

3 files changed

+89
-1
lines changed

3 files changed

+89
-1
lines changed

.github/workflows/jekyll.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build Jekyll Site
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
branches: [ main, master ]
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: "pages"
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Setup Ruby
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: '3.1'
29+
bundler-cache: true
30+
31+
- name: Build with Jekyll
32+
run: bundle exec jekyll build
33+
34+
- name: Setup Pages
35+
uses: actions/configure-pages@v4
36+
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: ./_site
41+
42+
deploy:
43+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
runs-on: ubuntu-latest
48+
needs: build
49+
steps:
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4

Gemfile

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
source 'https://rubygems.org'
2-
gem 'jekyll'
2+
3+
# Jekyll and GitHub Pages
4+
gem 'jekyll', '~> 4.3.0'
35
gem 'liquid'
46
gem "webrick", "~> 1.8"
7+
8+
# GitHub Pages compatible plugins
9+
group :jekyll_plugins do
10+
gem 'jekyll-feed'
11+
gem 'jekyll-sitemap'
12+
gem 'jekyll-seo-tag'
13+
end
14+
15+
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
16+
# and associated library.
17+
platforms :mingw, :x64_mingw, :mswin, :jruby do
18+
gem "tzinfo", ">= 1", "< 3"
19+
gem "tzinfo-data"
20+
end
21+
22+
# Performance-booster for watching directories on Windows
23+
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

_config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ copyright: '<a href="https://www.drupal.org">Drupal</a> is a <a href="http://dru
1111
# Build settings
1212
markdown: kramdown
1313

14+
# GitHub Pages compatible settings
15+
plugins:
16+
- jekyll-feed
17+
- jekyll-sitemap
18+
- jekyll-seo-tag
19+
20+
# Exclude from processing
21+
exclude:
22+
- Gemfile
23+
- Gemfile.lock
24+
- node_modules
25+
- vendor
26+
- .git
27+
- .github
28+
- mcp-package
29+
- api
30+
1431
# yml_files = Dir.glob("_data/projects/*.yml")
1532
# puts "page_gen:"
1633
# yml_files.each do |file|

0 commit comments

Comments
 (0)