modify test CI

This commit is contained in:
loikein 2023-05-01 17:07:18 +01:00
parent 87bb3d4443
commit 7801e8aa2d
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@ name: Build for Github Pages
on:
push:
branches:
branches:g
- master # Set a branch to deploy
jobs:
@ -24,10 +24,10 @@ jobs:
extended: true
- name: Build
run: hugo --minify
run: hugo --gc --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./exampleSite/public
publish_dir: ./exampleSite/public

View file

@ -1,6 +1,6 @@
name: Test Build
on: [pull_request]
on: push
jobs:
deploy:
@ -21,4 +21,4 @@ jobs:
extended: true
- name: Build
run: hugo --minify
run: hugo --gc --minify