Skip to content

Commit 063c682

Browse files
committed
Add GitHub Actions workflow for Jekyll build and deploy to GitHub Pages
1 parent 7a85c9a commit 063c682

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: '3.3'
29+
bundler-cache: true
30+
working-directory: web
31+
32+
- uses: actions/configure-pages@v5
33+
34+
- name: Build Jekyll site
35+
run: cd web && bundle exec jekyll build --trace
36+
env:
37+
JEKYLL_ENV: production
38+
39+
- uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: web/_site
42+
43+
- uses: actions/deploy-pages@v4
44+
id: deployment

0 commit comments

Comments
 (0)