Skip to content

Commit

Permalink
Fix redirects in published docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Mar 1, 2024
1 parent 96a8adc commit d7ae6f9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,16 @@ jobs:
- name: 👉 Create redirects
run: |
function redirect() {
echo "Creating redirect: $1 -> $2"
mkdir -p $(dirname $1)
echo "<!DOCTYPE html><html><head><meta http-equiv=\"Refresh\" content=\"0; URL=${2}\"></head></html>" > $1
}
echo "hydra.family" > /tmp/public/CNAME
echo '<!DOCTYPE html><html><head><meta http-equiv="Refresh" content="0; URL=https://hydra.family/head-protocol"></head></html>' > /tmp/public/index.html
redirect /tmp/public/index.html https://hydra.family/head-protocol
# Monthly reports moved to scaling website (2024-02-29)
mkdir -p /tmp/public/monthly/
echo '<!DOCTYPE html><html><head><meta http-equiv="Refresh" content="0; URL=https://cardano-scaling.github.io/website/monthly/"></head></html>' > /tmp/public/monthly/index.html
redirect /tmp/public/head-protocol/monthly/index.html https://cardano-scaling.github.io/website/monthly
redirect /tmp/public/head-protocol/unstable/monthly/index.html https://cardano-scaling.github.io/website/monthly
- name: 🚢 Publish Documentation
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit d7ae6f9

Please sign in to comment.