Skip to content

Commit 5322b36

Browse files
committed
github pages deploy
1 parent 031113d commit 5322b36

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/deploy.yml

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

0 commit comments

Comments
 (0)