File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Deploy Hugo site to GitHub Pages
2-
3- on :
4- push :
5- branches :
6- - master # Change this to your main branch if different
7-
8- permissions :
9- contents : write # Grant write access to the repository contents
10-
111jobs :
122 build :
133 runs-on : ubuntu-latest
14-
154 steps :
16- - name : Checkout code
17- uses : actions/checkout@v2
18-
19- - name : Set up Hugo
20- uses : peaceiris/actions-hugo@v2
21- with :
22- hugo-version : ' latest'
23-
24- - name : Build
25- run : hugo --minify && ls
26-
5+ - uses : actions/checkout@master
6+ - uses : jakejarvis/hugo-build-action@master # ...or replace 'master' with a full version tag, such as: v0.64.1
7+ with :
8+ args : --minify --buildDrafts
9+ - uses : actions/upload-artifact@master
10+ with :
11+ name : website
12+ path : ' ./public'
You can’t perform that action at this time.
0 commit comments