Update main.yml
This commit is contained in:
+14
-10
@@ -1,25 +1,29 @@
|
|||||||
name: CI
|
name: github pages
|
||||||
on: push
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master # Set a branch name to trigger deployment
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v2
|
with:
|
||||||
|
submodules: true # Fetch Hugo themes (true OR recursive)
|
||||||
|
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||||
|
|
||||||
- name: Setup hugo
|
- name: Setup Hugo
|
||||||
uses: peaceiris/actions-hugo@v2
|
uses: peaceiris/actions-hugo@v2
|
||||||
with:
|
with:
|
||||||
hugo-version: "0.64.0"
|
hugo-version: '0.74.3'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
# remove --minify tag if you do not need it
|
|
||||||
# docs: https://gohugo.io/hugo-pipes/minification/
|
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
personal_token: HUGO_DEPLOY
|
github_token: 47151c9fe5dfd3dd7ae691ab6d2cab2d1d341d58
|
||||||
publish_dir: ./public
|
publish_dir: ./public
|
||||||
publish_branch: master
|
|
||||||
|
|||||||
Reference in New Issue
Block a user