From 45b84263f6a690e49aafeee25ffd68e2d1b870ca Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Wed, 10 Jan 2024 01:52:03 -0700 Subject: [PATCH] Use meta refresh to redirect QRA-ERQ to DFID-BDICD on GitHub Pages --- .github/workflows/deploy-preview-site.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/deploy-preview-site.yml b/.github/workflows/deploy-preview-site.yml index f1492a0..a10d933 100644 --- a/.github/workflows/deploy-preview-site.yml +++ b/.github/workflows/deploy-preview-site.yml @@ -61,6 +61,24 @@ jobs: sed -i 's#"/\([^"]\+\)\.php#"\1.html#g' *.html sed -i 's#"/\([^"]\+\)\.php#"../\1.html#g' */*.html + - name: Set up redirects for QRA-ERQ to DFID-BDICD + run: | + mkdir -p public/QRA-ERQ + for i in en fr; do cat < public/QRA-ERQ/index-${i}.php + + + + Redirecting... + + + + +

Redirecting...

+ + + EOF + done + - name: Setup Pages id: pages uses: actions/configure-pages@v3