Skip to content

Commit

Permalink
fix: Website generation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ellistarn committed Dec 5, 2023
1 parent 2dd7fdc commit 87ed399
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hack/release/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ removeOldWebsiteDirectories() {

editWebsiteConfig() {
RELEASE_VERSION=$1
yq -i ".params.latest_release_version = \"${RELEASE_VERSION}\"" website/config.yaml
yq -i ".params.latest_release_version = \"${RELEASE_VERSION}\"" website/hugo.yaml
}

# editWebsiteVersionsMenu sets relevant releases in the version dropdown menu of the website
Expand All @@ -193,12 +193,12 @@ editWebsiteVersionsMenu() {
return
fi
VERSIONS+=("${SANITIZED_VERSION}")
done < <(yq '.params.versions' website/config.yaml)
done < <(yq '.params.versions' website/hugo.yaml)
unset VERSIONS[${#VERSIONS[@]}-2]

yq -i '.params.versions = []' website/config.yaml
yq -i '.params.versions = []' website/hugo.yaml

for VERSION in "${VERSIONS[@]}"; do
yq -i ".params.versions += \"${VERSION}\"" website/config.yaml
yq -i ".params.versions += \"${VERSION}\"" website/hugo.yaml
done
}

0 comments on commit 87ed399

Please sign in to comment.