Skip to content

Commit 0936a64

Browse files
committed
update: HUGO_VERSION 0.143.0
1 parent 2a1797a commit 0936a64

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/hugo.yaml

+33-33
Original file line numberDiff line numberDiff line change
@@ -20,39 +20,39 @@ jobs:
2020
build:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- name: Install Hugo CLI
24-
env:
25-
# Manually set hugo version, latest by default
26-
HUGO_VERSION: "0.138.0"
27-
run: |
28-
if [ -z $HUGO_VERSION ]; then
29-
echo "[INFO] no HUGO_VERSION specified, use latest";
30-
HUGO_VERSION=`curl https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r .tag_name | sed 's/^.//'`;
31-
fi
32-
echo "[INFO] HUGO_VERSION: ${HUGO_VERSION}"
33-
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
34-
sudo dpkg -i ${{ runner.temp }}/hugo.deb
35-
- name: Checkout
36-
uses: actions/checkout@v4
37-
with:
38-
submodules: recursive
39-
- name: Setup Pages
40-
id: pages
41-
uses: actions/configure-pages@v5
42-
- name: Install Node.js dependencies
43-
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
44-
- name: Build with Hugo
45-
env:
46-
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
47-
HUGO_ENVIRONMENT: production
48-
run: |
49-
hugo \
50-
--minify \
51-
--baseURL "${{ steps.pages.outputs.base_url }}/"
52-
- name: Upload artifact
53-
uses: actions/upload-pages-artifact@v3
54-
with:
55-
path: ./public
23+
- name: Install Hugo CLI
24+
env:
25+
# Manually set hugo version, latest by default
26+
HUGO_VERSION: "0.143.0"
27+
run: |
28+
if [ -z $HUGO_VERSION ]; then
29+
echo "[INFO] no HUGO_VERSION specified, use latest";
30+
HUGO_VERSION=`curl https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r .tag_name | sed 's/^.//'`;
31+
fi
32+
echo "[INFO] HUGO_VERSION: ${HUGO_VERSION}"
33+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
34+
sudo dpkg -i ${{ runner.temp }}/hugo.deb
35+
- name: Checkout
36+
uses: actions/checkout@v4
37+
with:
38+
submodules: recursive
39+
- name: Setup Pages
40+
id: pages
41+
uses: actions/configure-pages@v5
42+
- name: Install Node.js dependencies
43+
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
44+
- name: Build with Hugo
45+
env:
46+
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
47+
HUGO_ENVIRONMENT: production
48+
run: |
49+
hugo \
50+
--minify \
51+
--baseURL "${{ steps.pages.outputs.base_url }}/"
52+
- name: Upload artifact
53+
uses: actions/upload-pages-artifact@v3
54+
with:
55+
path: ./public
5656

5757
deploy:
5858
environment:

0 commit comments

Comments
 (0)