Skip to content

Commit 67743d5

Browse files
authored
Fix generation of historical spec (#2123)
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 <[email protected]>
1 parent 338047e commit 67743d5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,11 @@ jobs:
284284
npm i
285285
npm run get-proposals
286286
- name: "⚙️ hugo"
287+
env:
288+
HUGO_PARAMS_VERSION_STATUS: "historical"
287289
# Create a baseURL like `/v1.2` out of the `v1.2` tag
288290
run: |
289-
echo -e '[params.version]\nstatus="historical"' > historical.toml
290-
hugo --config config.toml,historical.toml --baseURL "/${GITHUB_REF/refs\/tags\//}" -d "spec"
291+
hugo --baseURL "/${GITHUB_REF/refs\/tags\//}" -d "spec"
291292
292293
- name: "📥 Spec definition download"
293294
uses: actions/download-artifact@v4
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix the historical info box when generating the historical spec in CI.

0 commit comments

Comments
 (0)