Update main.yml
This commit is contained in:
+14
-10
@@ -1,25 +1,29 @@
|
||||
name: CI
|
||||
on: push
|
||||
name: github pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master # Set a branch name to trigger deployment
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-18.04
|
||||
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
|
||||
with:
|
||||
hugo-version: "0.64.0"
|
||||
hugo-version: '0.74.3'
|
||||
|
||||
- name: Build
|
||||
# remove --minify tag if you do not need it
|
||||
# docs: https://gohugo.io/hugo-pipes/minification/
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
personal_token: HUGO_DEPLOY
|
||||
github_token: 47151c9fe5dfd3dd7ae691ab6d2cab2d1d341d58
|
||||
publish_dir: ./public
|
||||
publish_branch: master
|
||||
|
||||
Reference in New Issue
Block a user