From 0d91d9a9529a8395a800cd93a7c3c4cc3cd85279 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Sun, 20 Oct 2024 17:02:25 +0200 Subject: [PATCH 1/3] fix(ci): change site prefix to make cleaner work --- .github/workflows/pr_cleaner_post_merge.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_cleaner_post_merge.yml b/.github/workflows/pr_cleaner_post_merge.yml index a2afbbb..7d47db9 100644 --- a/.github/workflows/pr_cleaner_post_merge.yml +++ b/.github/workflows/pr_cleaner_post_merge.yml @@ -5,13 +5,14 @@ name: "🧹 PR Cleaner" # only trigger on pull request closed events, that includes both merged and closed (dismissed) PRs on: pull_request_target: - types: [closed] + types: + - closed # Environment variables env: BUILD_DIR: build/ NETLIFY_SITE_NAME: geotribu-preprod - NETLIFY_SITE_PREFIX: preview-pullrequest-${{ github.event.pull_request.number }} + NETLIFY_SITE_PREFIX: geotribu-english-${{ github.event.pull_request.number }} jobs: clean-preview: From 3328ae5f13addcfe4c0304d95ac59c71eab67209 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Sun, 20 Oct 2024 17:05:14 +0200 Subject: [PATCH 2/3] fix(ci): netlify prefix --- .github/workflows/pr_checker_build.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr_checker_build.yml b/.github/workflows/pr_checker_build.yml index 6556184..4fbbd41 100644 --- a/.github/workflows/pr_checker_build.yml +++ b/.github/workflows/pr_checker_build.yml @@ -10,11 +10,8 @@ on: # Environment variables env: BUILD_DIR: build/mkdocs/site - LANG: "fr_FR.UTF-8" - LC_ALL: "fr_FR.UTF-8" - LC_TIME: "fr_FR.UTF-8" NETLIFY_SITE_NAME: geotribu-preprod - NETLIFY_SITE_PREFIX: preview-pullrequest-${{ github.event.pull_request.number }} + NETLIFY_SITE_PREFIX: geotribu-english-${{ github.event.pull_request.number }} PR_NUMBER: ${{ github.event.pull_request.number }} # If the workflow for a PR is triggered multiple times, previous existing runs will be canceled. @@ -70,7 +67,7 @@ jobs: MKDOCS_ENABLE_PLUGIN_RSS: true MKDOCS_ENABLE_PLUGIN_SOCIAL: true MKDOCS_ENABLE_PLUGIN_SOCIAL_CARDS: true - MKDOCS_SITE_NAME: "Geotribu PREVIEW - PR ${{ github.event.pull_request.number }}" + MKDOCS_SITE_NAME: "Geotribu in English PREVIEW - PR ${{ github.event.pull_request.number }}" MKDOCS_SITE_COPYRIGHT: 'Deploys by Netlify' run: | # store custom env vars that need resolution From ecc11bd0d984e49a67e12ddd008f7324b6783f32 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Sun, 20 Oct 2024 17:13:57 +0200 Subject: [PATCH 3/3] update(ci): add redirect script --- scripts/redirect.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 scripts/redirect.html diff --git a/scripts/redirect.html b/scripts/redirect.html new file mode 100644 index 0000000..e5aa3a8 --- /dev/null +++ b/scripts/redirect.html @@ -0,0 +1,29 @@ + + + + + + + + + Redirection Geotribu + + + +

Preview website closed. Thanks to visit the main website.

+ + + + +