mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-06-06 11:52:16 +02:00
modify test CI
This commit is contained in:
parent
87bb3d4443
commit
7801e8aa2d
2 changed files with 5 additions and 5 deletions
.github/workflows
6
.github/workflows/build-site-ghpages.yml
vendored
6
.github/workflows/build-site-ghpages.yml
vendored
|
@ -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
|
||||||
|
|
4
.github/workflows/test-build.yml
vendored
4
.github/workflows/test-build.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue