Skip to content

Commit 40f31a3

Browse files
committed
Fix GitHub Pages build compatibility
- Updated Gemfile to use github-pages gem for compatibility - Removed duplicate tzinfo-data entries - Added GitHub Actions workflow for reliable builds - Simplified plugin configuration for better compatibility
1 parent 86848f5 commit 40f31a3

File tree

4 files changed

+39
-6
lines changed

4 files changed

+39
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Ruby
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: '3.1'
21+
bundler-cache: true
22+
23+
- name: Build site
24+
run: bundle exec jekyll build
25+
26+
- name: Deploy to GitHub Pages
27+
if: github.ref == 'refs/heads/main'
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./_site

.nojekyll

Whitespace-only changes.

Gemfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
source "https://rubygems.org"
22

3-
gem "jekyll", "~> 4.3"
4-
gem "minima", "~> 2.5"
3+
# GitHub Pages compatible gems
4+
gem "github-pages", group: :jekyll_plugins
55

6+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
7+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
8+
# gem "github-pages"
9+
10+
# If you have any plugins, put them here!
611
group :jekyll_plugins do
712
gem "jekyll-feed", "~> 0.12"
813
gem "jekyll-sitemap"
@@ -21,6 +26,3 @@ gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
2126
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
2227
# do not have a Java counterpart.
2328
gem "http_parser.rb", "~> 0.6.0", :platforms => [:jruby]
24-
25-
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
26-
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

_site/feed.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2025-09-25T00:52:57+02:00</updated><id>http://localhost:4000/feed.xml</id><title type="html">Yousef Taheri - AI/ML Researcher &amp;amp; Developer</title><subtitle>AI/ML Researcher &amp; Developer specializing in Responsible AI and Ethical Machine Learning</subtitle><author><name>Yousef Taheri</name></author></feed>
1+
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2025-09-25T01:09:47+02:00</updated><id>http://localhost:4000/feed.xml</id><title type="html">Yousef Taheri - AI/ML Researcher &amp;amp; Developer</title><subtitle>AI/ML Researcher &amp; Developer specializing in Responsible AI and Ethical Machine Learning</subtitle><author><name>Yousef Taheri</name></author></feed>

0 commit comments

Comments
 (0)