Skip to content

Commit bf929e7

Browse files
committed
gh-pages
1 parent a0b310a commit bf929e7

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
submodules: true
15+
fetch-depth: 0
16+
17+
- name: Setup Hugo
18+
uses: peaceiris/actions-hugo@v3
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+
if: github.ref == 'refs/heads/master'
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./public

0 commit comments

Comments
 (0)