Skip to content

Commit 0318e77

Browse files
committed
Add Zola GitHub Pages workflow
Publish site on push to main. Adds static/CNAME with zokipedia.hahwul.com and uses shalzz/zola-deploy-action@v0.21.0 with GH_TOKEN secret.
1 parent c411bb4 commit 0318e77

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/zola.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Zola on GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: Publish site
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout main
14+
uses: actions/checkout@v4
15+
16+
- name: Add CNAME file
17+
run: echo "zokipedia.hahwul.com" > static/CNAME
18+
19+
- name: Build and deploy
20+
uses: shalzz/zola-deploy-action@v0.21.0
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)