Skip to content

Commit 947e25a

Browse files
committed
ci: add deploy workflow
1 parent 9a37227 commit 947e25a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Hugo site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
with:
15+
submodules: true # Fetch Hugo theme submodule
16+
17+
- name: Setup Hugo
18+
uses: peaceiris/actions-hugo@v2
19+
with:
20+
hugo-version: 'latest'
21+
extended: true
22+
23+
- name: Build
24+
run: hugo --minify
25+
26+
- name: Deploy
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./public
31+

0 commit comments

Comments
 (0)