Skip to content

Commit 1dc7cb8

Browse files
committed
workaround around hugo
1 parent d36faaf commit 1dc7cb8

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/hugo-deployment.yaml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
name: Deploy Hugo site to Pages
1+
name: Deploy Hugo to GH-Pages
22

33
on:
4+
push:
5+
branches: ["gh-pages"]
46
repository_dispatch:
5-
types: [deploy-hugo]
7+
types: [deploy-hugo]
68
workflow_dispatch:
79

810
permissions:
@@ -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:
@@ -66,6 +73,6 @@ jobs:
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

0 commit comments

Comments
 (0)