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

View file

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