File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches : ["master"]
66 workflow_dispatch :
7- # manual run
8- inputs :
9- hugoVersion :
10- description : " Hugo Version"
11- required : false
12- default : " 0.112.4"
137
148# Allow one concurrent deployment
159concurrency :
@@ -31,17 +25,18 @@ jobs:
3125 # Build job
3226 build :
3327 runs-on : ubuntu-latest
34- env :
35- HUGO_VERSION : ${{ github.event.inputs.hugoVersion || '0.125.7' }}
3628 steps :
37- - name : Install Hugo CLI
38- run : |
39- wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.deb \
40- && sudo dpkg -i ${{ runner.temp }}/hugo.deb
4129 - name : Checkout
4230 uses : actions/checkout@v3
4331 with :
4432 submodules : recursive
33+
34+ - name : Setup Hugo (latest)
35+ uses : peaceiris/actions-hugo@v2
36+ with :
37+ hugo-version : ' latest' # Auto get the latest hugo
38+ extended : true
39+
4540 - name : Setup Pages
4641 id : pages
4742 uses : actions/configure-pages@v3
You can’t perform that action at this time.
0 commit comments