-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script and pipeline step to update documentation links (#4905)
### Changes - Introduce a script to fix release links in the gh-pages branch - Add a step in the release pipeline to execute this script. ### Notes - I removed user interaction from make_redirects.sh in the gh-pages branch fix #4902
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}" |