File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed
Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Hugo site to Pages
1+ name : Deploy Hugo to GH- Pages
22
33on :
4+ push :
5+ branches : ["gh-pages"]
46 repository_dispatch :
5- types : [deploy-hugo]
7+ types : [deploy-hugo]
68 workflow_dispatch :
79
810permissions :
@@ -22,12 +24,12 @@ jobs:
2224 build :
2325 runs-on : ubuntu-latest
2426 env :
25- HUGO_VERSION : 0.121 .0
27+ HUGO_VERSION : 0.145 .0
2628 steps :
27- - name : Checkout gh-pages branch
29+ - name : Checkout
2830 uses : actions/checkout@v4
2931 with :
30- ref : gh-pages
32+ ref : ${{ github.event.client_payload.ref || ' gh-pages' }}
3133 submodules : true
3234 fetch-depth : 0
3335
@@ -38,11 +40,16 @@ jobs:
3840 - name : Setup Hugo
3941 uses : peaceiris/actions-hugo@v2
4042 with :
41- hugo-version : ' latest'
4243 extended : true
44+ hugo-version : ' 0.145.0'
45+
4346
4447 - name : Install theme
45- run : git submodule add -f https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
48+ run : |
49+ git submodule add -f https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
50+ git submodule update --init --recursive
51+
52+
4653
4754 - name : Build with Hugo
4855 env :
6673 runs-on : ubuntu-latest
6774 needs : build
6875 steps :
69- - name : Deploy to GitHub Pages
76+ - name : Deploying GitHub Pages
7077 id : deployment
71- uses : actions/deploy-pages@v4
78+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments