@@ -15,8 +15,9 @@ permissions:
1515 pages : write
1616 id-token : write
1717
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.
2021concurrency :
2122 group : " pages"
2223 cancel-in-progress : false
@@ -26,12 +27,15 @@ defaults:
2627 run :
2728 shell : bash
2829
30+ env :
31+ TZ : Asia/Kolkata
32+
2933jobs :
3034 test :
31- runs-on : ubuntu-22 .04
35+ runs-on : ubuntu-24 .04
3236 steps :
3337 - name : Checkout
34- uses : actions/checkout@v3
38+ uses : actions/checkout@v4
3539 with :
3640 submodules : false
3741 fetch-depth : 50
4852
4953 build :
5054 needs : test
51- runs-on : ubuntu-22 .04
55+ runs-on : ubuntu-24 .04
5256 env :
53- HUGO_VERSION : 0.125.5
57+ HUGO_VERSION : 0.145.0
5458
5559 steps :
5660 - name : Install Hugo CLI
@@ -59,30 +63,30 @@ jobs:
5963 && sudo dpkg -i ${{ runner.temp }}/hugo.deb
6064
6165 - name : Checkout
62- uses : actions/checkout@v3
66+ uses : actions/checkout@v4
6367 with :
6468 submodules : false
6569 fetch-depth : 50
6670
6771 - name : Setup Pages
6872 id : pages
69- uses : actions/configure-pages@v3
73+ uses : actions/configure-pages@v5
7074
7175 - name : Build with Hugo
7276 env :
7377 # For maximum backward compatibility with Hugo modules
7478 HUGO_ENVIRONMENT : production
7579 HUGO_ENV : production
7680 run : |
77- source ./exampleSite/scripts/hugo-env && \
81+ . ./exampleSite/scripts/hugo-env && \
7882 hugo --source exampleSite
7983
8084 - name : Upload artifact
81- uses : actions/upload-pages-artifact@v1
85+ uses : actions/upload-pages-artifact@v3
8286 with :
8387 path : ./exampleSite/public
8488
85- - uses : actions/cache@v2
89+ - uses : actions/cache@v4
8690 with :
8791 path : /tmp/hugo_cache
8892 key : ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
@@ -91,12 +95,12 @@ jobs:
9195
9296 deploy :
9397 needs : build
94- runs-on : ubuntu-latest
98+ runs-on : ubuntu-24.04
9599 if : github.ref_name == 'main'
96100 environment :
97101 name : github-pages
98102 url : ${{ steps.deployment.outputs.page_url }}
99103 steps :
100104 - name : Deploy to GitHub Pages
101105 id : deployment
102- uses : actions/deploy-pages@v2
106+ uses : actions/deploy-pages@v4
0 commit comments