Skip to content

Commit 3685c5e

Browse files
committed
fix: switch to Hugo Modules setup
1 parent bbae2cb commit 3685c5e

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,17 @@ on:
1010

1111
jobs:
1212
deploy:
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-22.04
1414
steps:
15-
- uses: actions/checkout@v2
16-
with:
17-
submodules: 'recursive'
18-
fetch-depth: 0
19-
20-
- name: Setup Yarn
21-
uses: actions/setup-node@v2
22-
- run: yarn install
15+
- uses: actions/checkout@v3
2316

2417
- name: Read .env hugo version
2518
id: hugo-version
2619
run: |
2720
. ./.env
2821
echo "::set-output name=HUGO_VERSION::${HUGO_VERSION}"
22+
hugo mod init github.com/openmodelingfoundation/openmodelingfoundation.github.io
23+
hugo mod get github.com/google/docsy@v0.4.0
2924
3025
- name: Setup Hugo
3126
uses: peaceiris/actions-hugo@v2

0 commit comments

Comments
 (0)