@@ -20,39 +20,39 @@ jobs:
20
20
build :
21
21
runs-on : ubuntu-latest
22
22
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
56
56
57
57
deploy :
58
58
environment :
0 commit comments