Skip to content

Commit 0a3ac03

Browse files
committed
Add GitHub Pages workflow
1 parent e4385da commit 0a3ac03

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy Jekyll site to Pages
2+
on:
3+
push:
4+
branches: main
5+
6+
permissions:
7+
content: read
8+
pages: write
9+
id-token: write
10+
11+
concurrency:
12+
group: pages
13+
cancel-in-progress: false
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
22+
- name: Set up Ruby
23+
uses: ruby/setup-ruby@v1
24+
with:
25+
bundler-cache: true
26+
27+
- name: Set up Pages
28+
uses: actions/configure-pages@v5
29+
30+
- name: Build with Jekyll
31+
run: bundle exec jekyll build
32+
env:
33+
JEKYLL_ENV: production
34+
35+
- name: Upload artifact
36+
uses: actions/upload-pages-artifact@v3
37+
38+
deploy:
39+
runs-on: ubuntu-latest
40+
needs: build
41+
environment:
42+
name: github-pages
43+
url: ${{ github.event.repository.homepage }}
44+
steps:
45+
- name: Deploy to GitHub Pages
46+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)