Skip to content

Commit c2d096b

Browse files
committed
Add GitHub Actions workflow for Pages deployment
- Created proper GitHub Actions workflow for Jekyll deployment - Updated Gemfile to use standard Jekyll instead of github-pages gem - This will now show builds in the Actions section - Enables proper CI/CD for the portfolio site
1 parent 0e0b1e1 commit c2d096b

File tree

3 files changed

+57
-8
lines changed

3 files changed

+57
-8
lines changed

.github/workflows/pages.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
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: Setup Pages
32+
uses: actions/configure-pages@v4
33+
34+
- name: Build with Jekyll
35+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
36+
env:
37+
JEKYLL_ENV: production
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: ./_site
43+
44+
deploy:
45+
environment:
46+
name: github-pages
47+
url: ${{ steps.deployment.outputs.page_url }}
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

Gemfile

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

3-
# GitHub Pages compatible gems
4-
gem "github-pages", group: :jekyll_plugins
3+
# Jekyll and plugins
4+
gem "jekyll", "~> 4.3.0"
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!
116
group :jekyll_plugins do
127
gem "jekyll-feed", "~> 0.12"
138
gem "jekyll-sitemap"
9+
gem "jekyll-seo-tag"
1410
end
1511

1612
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem

_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="3.10.0">Jekyll</generator><link href="http://localhost:4001/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4001/" rel="alternate" type="text/html" /><updated>2025-09-27T01:26:55+02:00</updated><id>http://localhost:4001/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="3.10.0">Jekyll</generator><link href="http://localhost:4001/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4001/" rel="alternate" type="text/html" /><updated>2025-09-27T01:31:21+02:00</updated><id>http://localhost:4001/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)