@@ -15,8 +15,9 @@ permissions:
15
15
pages : write
16
16
id-token : write
17
17
18
- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19
- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18
+ # Allow only one concurrent deployment, skipping runs queued between the run
19
+ # in-progress and latest queued. However, do NOT cancel in-progress runs as
20
+ # we want to allow these production deployments to complete.
20
21
concurrency :
21
22
group : " pages"
22
23
cancel-in-progress : false
@@ -26,12 +27,15 @@ defaults:
26
27
run :
27
28
shell : bash
28
29
30
+ env :
31
+ TZ : Asia/Kolkata
32
+
29
33
jobs :
30
34
test :
31
- runs-on : ubuntu-22 .04
35
+ runs-on : ubuntu-24 .04
32
36
steps :
33
37
- name : Checkout
34
- uses : actions/checkout@v3
38
+ uses : actions/checkout@v4
35
39
with :
36
40
submodules : false
37
41
fetch-depth : 50
48
52
49
53
build :
50
54
needs : test
51
- runs-on : ubuntu-22 .04
55
+ runs-on : ubuntu-24 .04
52
56
env :
53
- HUGO_VERSION : 0.125.5
57
+ HUGO_VERSION : 0.145.0
54
58
55
59
steps :
56
60
- name : Install Hugo CLI
@@ -59,30 +63,30 @@ jobs:
59
63
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
60
64
61
65
- name : Checkout
62
- uses : actions/checkout@v3
66
+ uses : actions/checkout@v4
63
67
with :
64
68
submodules : false
65
69
fetch-depth : 50
66
70
67
71
- name : Setup Pages
68
72
id : pages
69
- uses : actions/configure-pages@v3
73
+ uses : actions/configure-pages@v5
70
74
71
75
- name : Build with Hugo
72
76
env :
73
77
# For maximum backward compatibility with Hugo modules
74
78
HUGO_ENVIRONMENT : production
75
79
HUGO_ENV : production
76
80
run : |
77
- source ./exampleSite/scripts/hugo-env && \
81
+ . ./exampleSite/scripts/hugo-env && \
78
82
hugo --source exampleSite
79
83
80
84
- name : Upload artifact
81
- uses : actions/upload-pages-artifact@v1
85
+ uses : actions/upload-pages-artifact@v3
82
86
with :
83
87
path : ./exampleSite/public
84
88
85
- - uses : actions/cache@v2
89
+ - uses : actions/cache@v4
86
90
with :
87
91
path : /tmp/hugo_cache
88
92
key : ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
@@ -91,12 +95,12 @@ jobs:
91
95
92
96
deploy :
93
97
needs : build
94
- runs-on : ubuntu-latest
98
+ runs-on : ubuntu-24.04
95
99
if : github.ref_name == 'main'
96
100
environment :
97
101
name : github-pages
98
102
url : ${{ steps.deployment.outputs.page_url }}
99
103
steps :
100
104
- name : Deploy to GitHub Pages
101
105
id : deployment
102
- uses : actions/deploy-pages@v2
106
+ uses : actions/deploy-pages@v4
0 commit comments