Skip to content

Commit 885bf13

Browse files
committed
ci: add GitHub Actions workflow for Jekyll deployment
Deploy Jekyll site to GitHub Pages on push to master and static branches.
1 parent bc6de80 commit 885bf13

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

‎.github/workflows/jekyll.yml‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2+
name: Deploy Jekyll site to Pages
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
- static # Current branch, after merging, will be deleted
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v6
27+
- name: Setup Ruby
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: '3.4'
31+
bundler-cache: true
32+
- name: Setup Pages
33+
uses: actions/configure-pages@v5
34+
- name: Build with Jekyll
35+
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
36+
env:
37+
JEKYLL_ENV: production
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@v4
40+
41+
# Deployment job
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
runs-on: ubuntu-latest
47+
needs: build
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4
52+

0 commit comments

Comments
 (0)