Skip to content

Commit 6ec83e8

Browse files
committed
Add GitHub Actions for building GitHub Pages
1 parent a2b9bed commit 6ec83e8

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/github-pages.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
on:
2+
push:
3+
branches: [ master ]
4+
5+
permissions:
6+
contents: read
7+
pages: write
8+
id-token: write
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout source
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 1
19+
fetch-tags: true
20+
ref: ${{ github.head_ref }}
21+
22+
# ↓ Do some site building here ↓
23+
- name: Setup pages
24+
uses: actions/[email protected]
25+
- name: Build pages
26+
uses: actions/jekyll-build-pages@v1
27+
# ↑ Do some site building here ↑
28+
29+
- name: Upload artifact
30+
uses: actions/[email protected]
31+
32+
deploy:
33+
runs-on: ubuntu-latest
34+
needs: build
35+
36+
environment:
37+
name: github-pages
38+
url: ${{ steps.deployment.outputs.page_url }}
39+
40+
steps:
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/[email protected]
44+

0 commit comments

Comments
 (0)