From 0ab00451831b7bbbddde89ae001813ad44d48796 Mon Sep 17 00:00:00 2001 From: paolino Date: Tue, 7 Jan 2025 10:05:04 +0000 Subject: [PATCH 1/2] Add update-documentation-links.sh script to fix the release links in gh-pages branch --- .../buildkite/release/update-documentation-links.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 scripts/buildkite/release/update-documentation-links.sh diff --git a/scripts/buildkite/release/update-documentation-links.sh b/scripts/buildkite/release/update-documentation-links.sh new file mode 100755 index 00000000000..39ee94bfbeb --- /dev/null +++ b/scripts/buildkite/release/update-documentation-links.sh @@ -0,0 +1,13 @@ +#! /usr/bin/env bash + +set -euox pipefail + +RELEASE_VERSION=$(buildkite-agent meta-data get release-version) +GH_PAGES_BRANCH="gh-pages" + +git checkout "${GH_PAGES_BRANCH}" +git pull origin "${GH_PAGES_BRANCH}" +cd releases +./make_redirects.sh "${RELEASE_VERSION}" +git remote set-url origin "https://$GITHUB_TOKEN@github.com/cardano-foundation/cardano-wallet.git" +git push origin "${GH_PAGES_BRANCH}" \ No newline at end of file From 2a52f3cd267f147014c3881d29c74930e2a30675 Mon Sep 17 00:00:00 2001 From: paolino Date: Tue, 7 Jan 2025 10:52:44 +0000 Subject: [PATCH 2/2] Add a step to the release pipeline to update the documentation release links --- .buildkite/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.buildkite/release.yml b/.buildkite/release.yml index 0e2bd355057..20f1f8ffd25 100644 --- a/.buildkite/release.yml +++ b/.buildkite/release.yml @@ -132,3 +132,8 @@ steps: - "./docker-build-push" agents: system: x86_64-linux + + - label: Update Documentation Links + depends_on: create-release + commands: + - nix develop path:$RELEASE_SCRIPTS_DIR -c $RELEASE_SCRIPTS_DIR/update-documentation-links.sh