@@ -18,27 +18,24 @@ jobs:
1818 build :
1919 runs-on : ubuntu-latest
2020 env :
21- DART_SASS_VERSION : 1.97.1
21+ DART_SASS_VERSION : 1.97.2
2222 GO_VERSION : 1.25.5
23- HUGO_VERSION : 0.153.3
23+ HUGO_VERSION : 0.154.4
2424 NODE_VERSION : 24.12.0
2525 TZ : Europe/Oslo
26- outputs :
27- pages_base_url : ${{ steps.pages.outputs.base_url }}
28- pages_base_path : ${{ steps.pages.outputs.base_path }}
2926 steps :
3027 - name : Checkout
31- uses : actions/checkout@v5
28+ uses : actions/checkout@v6
3229 with :
3330 submodules : recursive
3431 fetch-depth : 0
3532 - name : Setup Go
36- uses : actions/setup-go@v5
33+ uses : actions/setup-go@v6
3734 with :
3835 go-version : ${{ env.GO_VERSION }}
3936 cache : false
4037 - name : Setup Node.js
41- uses : actions/setup-node@v4
38+ uses : actions/setup-node@v6
4239 with :
4340 node-version : ${{ env.NODE_VERSION }}
4441 - name : Setup Pages
@@ -55,10 +52,10 @@ jobs:
5552 echo "${HOME}/.local/dart-sass" >> "${GITHUB_PATH}"
5653 - name : Install Hugo
5754 run : |
58- curl -sLJO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_ ${HUGO_VERSION}_linux-amd64.tar.gz"
55+ curl -sLJO "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_ ${HUGO_VERSION}_linux-amd64.tar.gz"
5956 mkdir "${HOME}/.local/hugo"
60- tar -C "${HOME}/.local/hugo" -xf "hugo_ ${HUGO_VERSION}_linux-amd64.tar.gz"
61- rm "hugo_ ${HUGO_VERSION}_linux-amd64.tar.gz"
57+ tar -C "${HOME}/.local/hugo" -xf "hugo_extended_ ${HUGO_VERSION}_linux-amd64.tar.gz"
58+ rm "hugo_extended_ ${HUGO_VERSION}_linux-amd64.tar.gz"
6259 echo "${HOME}/.local/hugo" >> "${GITHUB_PATH}"
6360 - name : Verify installations
6461 run : |
7471 git config core.quotepath false
7572 - name : Cache restore
7673 id : cache-restore
77- uses : actions/cache/restore@v4
74+ uses : actions/cache/restore@v5
7875 with :
7976 path : ${{ runner.temp }}/hugo_cache
8077 key : hugo-${{ github.run_id }}
@@ -89,71 +86,20 @@ jobs:
8986 --cacheDir "${{ runner.temp }}/hugo_cache"
9087 - name : Cache save
9188 id : cache-save
92- uses : actions/cache/save@v4
89+ uses : actions/cache/save@v5
9390 with :
9491 path : ${{ runner.temp }}/hugo_cache
9592 key : ${{ steps.cache-restore.outputs.cache-primary-key }}
96- - name : Upload artifact for deploy job
97- uses : actions/upload-pages-artifact@v3
93+ - name : Upload artifact
94+ uses : actions/upload-pages-artifact@v4
9895 with :
9996 path : ./public
100- - name : Upload artifact for validate job
101- uses : actions/upload-artifact@v4
102- with :
103- name : publish-dir
104- path : ./public
105- validate :
106- runs-on : ubuntu-latest
107- needs : build
108- steps :
109- - name : Set up Ruby
110- uses : ruby/setup-ruby@v1
111- with :
112- ruby-version : 3.3
113- bundler-cache : true
114- - name : Download artifact
115- uses : actions/download-artifact@v4
116- with :
117- name : publish-dir
118- path : ./
119- - name : Validate HTML and CSS
120- uses : anishathalye/proof-html@v2
121- with :
122- directory : ./
123- enforce_https : true
124- ignore_empty_alt : true
125- ignore_url_re : |
126- ^foo$
127- tokens : |
128- {"https://github.com": "${{ secrets.GITHUB_TOKEN }}"}
129- swap_urls : |
130- ${{ format('{{ "^{0}" : "" }}', needs.build.outputs.pages_base_path) }}
131- - name : Install libxml2-utils
132- run : sudo apt update && sudo apt install libxml2-utils
133- - name : Verify that RSS and sitemap are valid XML
134- run : |
135- xmllint --noout ./index.xml
136- xmllint --noout ./sitemap.xml
137- - name : Download RSS schema
138- run : wget https://raw.githubusercontent.com/jthelin/rss2schema/refs/heads/main/schema/rss-2_0.xsd
139- - name : Validate RSS
140- uses : ChristophWurst/xmllint-action@v1
141- with :
142- xml-file : ./index.xml
143- xml-schema-file : ./rss-2_0.xsd
144- - name : Download sitemap schema
145- run : wget https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd
146- - name : Validate sitemap
147- uses : ChristophWurst/xmllint-action@v1
148- with :
149- xml-file : ./sitemap.xml
150- xml-schema-file : ./sitemap.xsd
15197 deploy :
15298 environment :
15399 name : github-pages
154100 url : ${{ steps.deployment.outputs.page_url }}
155101 runs-on : ubuntu-latest
156- needs : [ build, validate]
102+ needs : build
157103 steps :
158104 - name : Deploy to GitHub Pages
159105 id : deployment
0 commit comments