Skip to content

Commit f9d29f0

Browse files
committed
[feat]: try to use hugo
1 parent 569dc9a commit f9d29f0

4 files changed

Lines changed: 24 additions & 57 deletions

File tree

.github/workflows/demo.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/hugo.yml

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

.github/workflows/test.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

_config.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)