Skip to content

Commit be84466

Browse files
committed
Fix for new hugo.yaml
1 parent 45c912a commit be84466

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/ci/build_site

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -o nounset # Disallow expansion of unset variables
66
set -o pipefail # Use last non-zero exit code in a pipeline
77

88
TAG_NAME=dev
9-
BASE_URL=$(yq .baseURL config.yaml)
9+
BASE_URL=$(yq .baseURL hugo.yaml)
1010
SERVE=0
1111

1212
while getopts 'b:st:' opt; do

.github/ci/do_release

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fi
3838
#echo "::set-output name=tag_name::${TAG}"
3939
echo "tag_name=${TAG}" >> $GITHUB_OUTPUT
4040

41-
BASE_URL="$(yq .baseURL config.yaml)"
41+
BASE_URL="$(yq .baseURL hugo.yaml)"
4242
#echo "::set-output name=base_url::${BASE_URL}"
4343
echo "base_url=${BASE_URL}" >> $GITHUB_OUTPUT
4444

@@ -49,15 +49,15 @@ if [[ $DRY_RUN == 0 ]]; then
4949
git fetch --tags origin
5050
git add README.md
5151

52-
LATEST_URL=$(yq '.params.versions[]|select(.version == "latest").url' config.yaml)
52+
LATEST_URL=$(yq '.params.versions[]|select(.version == "latest").url' hugo.yaml)
5353
# filter versions, remove latest entry, add new version, sort, limit to last two, add latest
54-
NEW_VERSIONS=$(yq '.params.versions[] | select (.version != "latest") | [ . ]' config.yaml |
54+
NEW_VERSIONS=$(yq '.params.versions[] | select (.version != "latest") | [ . ]' hugo.yaml |
5555
yq -o=json -I=0 '. += [{ "version": "v'"${TAG}"'", "url": "'"${BASE_URL}observability-workshop/v${TAG}"'"}]' |
5656
jq -c --arg latest_url "${LATEST_URL}" 'sort_by(.version[1:] | split(".") | map(tonumber)) | .[-2:] | [{ version: "latest", url: $latest_url}] + .')
5757

5858
# set new versions
59-
yq e ".params.versions=${NEW_VERSIONS}" -i config.yaml
60-
git add config.yaml
59+
yq e ".params.versions=${NEW_VERSIONS}" -i hugo.yaml
60+
git add hugo.yaml
6161

6262
git commit --amend -m "Releasing v${TAG}"
6363
git tag -a "v${TAG}" -m "Version ${TAG}"

.github/ci/publish_release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ done
2626

2727
publish_dir="$(pwd)/site/v${TAG_NAME}"
2828
commit_message="Docs: Releasing ${TAG_NAME}"
29-
version_filter=$(yq '[.params.versions[].version | select (. != "latest")] | . + ["'"v${TAG_NAME}"'"] | "! /^" + .[] + "\//"|[.]' config.yaml | yq 'join(" && ")')
29+
version_filter=$(yq '[.params.versions[].version | select (. != "latest")] | . + ["'"v${TAG_NAME}"'"] | "! /^" + .[] + "\//"|[.]' hugo.yaml | yq 'join(" && ")')
3030

3131
if [[ -z "${GITHUB_ACTOR+x}" ]]; then
3232
# running outside github action

0 commit comments

Comments
 (0)