Compare commits

...

4 commits

Author SHA1 Message Date
Kévin Commaille bc19cd514f
Merge a862fd1786 into 23ff7f1343 2025-04-08 15:13:50 +01:00
Kévin Commaille a862fd1786 Re-enable historical job condition
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2025-03-29 20:25:52 +00:00
Kévin Commaille c4f89011d3 Add changelog
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2025-03-29 20:22:44 +00:00
Kévin Commaille 7204b0fdc8 Fix generation of historical spec
With the move of the config file, the command in CI did not work as
expected anymore.
I am unsure why Hugo actually ignored the missing config file in the
command…

To avoid this problem in the future and simplify the job, we use the
default config and add an environment variable for the status which will
always take precedence over the config.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2025-03-29 20:10:14 +00:00
2 changed files with 4 additions and 2 deletions

View file

@ -283,10 +283,11 @@ jobs:
npm i
npm run get-proposals
- name: "⚙️ hugo"
env:
HUGO_PARAMS_VERSION_STATUS: "historical"
# Create a baseURL like `/v1.2` out of the `v1.2` tag
run: |
echo -e '[params.version]\nstatus="historical"' > historical.toml
hugo --config config.toml,historical.toml --baseURL "/${GITHUB_REF/refs\/tags\//}" -d "spec"
hugo --baseURL "/${GITHUB_REF/refs\/tags\//}" -d "spec"
- name: "📥 Spec definition download"
uses: actions/download-artifact@v4

View file

@ -0,0 +1 @@
Fix the historical info box when generating the historical spec in CI.