Skip to content

Commit 1c9de16

Browse files
committed
update workflow
1 parent 039cced commit 1c9de16

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,22 @@ on:
88

99
jobs:
1010
deploy:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
1414
with:
1515
submodules: true # Fetch Hugo themes (true OR recursive)
1616
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
1717

18-
- name: Setup Hugo
19-
uses: peaceiris/actions-hugo@v2
18+
- uses: actions/setup-node@v2
2019
with:
21-
hugo-version: 'latest'
22-
# extended: true
20+
node-version: '14'
2321

2422
- name: Build
25-
run: hugo --minify
23+
run: npm run build
2624

2725
- name: Deploy
2826
uses: peaceiris/actions-gh-pages@v3
29-
if: github.ref == 'refs/heads/main'
3027
with:
3128
github_token: ${{ secrets.GITHUB_TOKEN }}
3229
publish_dir: ./public

0 commit comments

Comments
 (0)