5
5
branches : ["main"]
6
6
workflow_dispatch :
7
7
8
- permissions : {}
8
+ permissions :
9
+ contents : read
10
+ pages : write
11
+ id-token : write
9
12
10
13
# Allow one concurrent deployment
11
14
concurrency :
@@ -21,27 +24,24 @@ jobs:
21
24
runs-on : ubuntu-latest
22
25
env :
23
26
HUGO_VERSION : 0.108.0
24
- permissions :
25
- contents : read
26
27
27
28
steps :
28
29
- name : Install Hugo CLI
29
30
run : |
30
- wget -O "${RUNNER_TEMP} /hugo.deb" https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
31
- && sudo dpkg -i "${RUNNER_TEMP} /hugo.deb"
31
+ wget -O ${{ runner.temp }} /hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
32
+ && sudo dpkg -i ${{ runner.temp }} /hugo.deb
32
33
33
34
- name : Install Dart Sass Embedded
34
35
run : sudo snap install dart-sass-embedded
35
36
36
37
- name : Checkout
37
- uses : actions/checkout@v4
38
+ uses : actions/checkout@v3
38
39
with :
39
40
submodules : recursive
40
- persist-credentials : false
41
41
42
42
- name : Setup Pages
43
43
id : pages
44
- uses : actions/configure-pages@v5
44
+ uses : actions/configure-pages@v2
45
45
46
46
- name : Install Node.js dependencies
47
47
run : " [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
@@ -51,14 +51,13 @@ jobs:
51
51
# For maximum backward compatibility with Hugo modules
52
52
HUGO_ENVIRONMENT : production
53
53
HUGO_ENV : production
54
- BASE_URL : ${{ steps.pages.outputs.base_url }}
55
54
run : |
56
55
hugo \
57
56
--minify \
58
- --baseURL "${BASE_URL }/"
57
+ --baseURL "${{ steps.pages.outputs.base_url } }/"
59
58
60
59
- name : Upload artifact
61
- uses : actions/upload-pages-artifact@v3
60
+ uses : actions/upload-pages-artifact@v1
62
61
with :
63
62
path : ./public
64
63
69
68
url : ${{ steps.deployment.outputs.page_url }}
70
69
runs-on : ubuntu-latest
71
70
needs : build
72
- permissions :
73
- pages : write
74
- id-token : write
75
71
76
72
steps :
77
73
- name : Deploy to GitHub Pages
78
74
id : deployment
79
- uses : actions/deploy-pages@v4
75
+ uses : actions/deploy-pages@v1
0 commit comments