File tree Expand file tree Collapse file tree 1 file changed +28
-9
lines changed Expand file tree Collapse file tree 1 file changed +28
-9
lines changed Original file line number Diff line number Diff line change @@ -11,26 +11,45 @@ permissions:
1111
1212jobs :
1313 build :
14- runs-on : ubuntu-22.04
14+ runs-on : ubuntu-24.04
15+ env :
16+ HUGO_VERSION : 0.143.1
1517 steps :
16- - uses : actions/checkout@v4
18+ - name : Install Hugo CLI
19+ run : |
20+ wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
21+ && sudo dpkg -i ${{ runner.temp }}/hugo.deb
22+ - name : Checkout
23+ uses : actions/checkout@v4
1724 with :
1825 submodules : recursive
19- - uses : actions/configure-pages@v5
20- -
uses :
jakejarvis/[email protected] 21- - uses : actions/upload-pages-artifact@v3
26+ fetch-depth : 0
27+ - name : Setup Pages
28+ id : pages
29+ uses : actions/configure-pages@v5
30+ - name : Build with Hugo
31+ env :
32+ HUGO_CACHEDIR : ${{ runner.temp }}/hugo_cache
33+ HUGO_ENVIRONMENT : production
34+ TZ : America/Los_Angeles
35+ run : |
36+ hugo \
37+ --gc \
38+ --minify \
39+ --baseURL "${{ steps.pages.outputs.base_url }}/"
40+ - name : Upload artifact
41+ uses : actions/upload-pages-artifact@v3
2242 with :
23- path : public
43+ path : ./ public
2444
2545 deploy :
2646 if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
27- runs-on : ubuntu-22 .04
47+ runs-on : ubuntu-24 .04
2848 needs : build
2949 environment :
3050 name : github-pages
3151 url : ${{ steps.deployment.outputs.page_url }}
3252 steps :
3353 - name : Deploy to GitHub Pages
3454 id : deployment
35- uses : actions/deploy-pages@v4
36-
55+
You can’t perform that action at this time.
0 commit comments