Skip to content

Commit f917289

Browse files
authored
Pub/update build hugo 161 (#268)
* Update node version to 20 * Update node version to 22 and fix formatting for GitHub Actions workflow to make it more consistent with YAML standards
1 parent df49409 commit f917289

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,23 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@main
1414
with:
15-
submodules: recursive # Fetch Hugo themes
16-
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
15+
submodules: recursive # Fetch Hugo themes
16+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
1717

1818
- name: Setup Hugo
1919
uses: peaceiris/actions-hugo@v2
2020
with:
21-
hugo-version: 'latest'
21+
hugo-version: "latest"
2222
extended: true
2323
- name: Setup Go
2424
uses: actions/setup-go@v2
2525
with:
26-
go-version: '1.19.1'
26+
go-version: "1.19.1"
2727
- name: Setup Node
2828
uses: actions/setup-node@v3
2929
with:
30-
node-version: '20'
30+
node-version: "22"
31+
3132

3233
- name: Cache dependencies
3334
uses: actions/cache@v3
@@ -40,10 +41,10 @@ jobs:
4041

4142
- name: Build
4243
run: |
43-
npm install -D --save autoprefixer
44-
npm install -D --save postcss-cli
45-
npm install -D --save postcss
46-
hugo --baseURL="${{ vars.BASEURL }}"
44+
npm install -D --save autoprefixer
45+
npm install -D --save postcss-cli
46+
npm install -D --save postcss
47+
hugo --baseURL="${{ vars.BASEURL }}"
4748
- name: Deploy
4849
uses: peaceiris/actions-gh-pages@v3
4950
with:

0 commit comments

Comments
 (0)