From 95ecfc228eeda69af28e4b9c25e4d61ed089818e Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Tue, 10 Jun 2025 11:24:44 -0600 Subject: [PATCH] ci: Set production metadata for immediate releases --- .github/workflows/build-blog.yml | 12 ++++++++++++ .github/workflows/build-videos.yml | 12 ++++++++++++ .github/workflows/publish-immediate.yml | 2 ++ .github/workflows/publish-release.yml | 2 ++ blog/posts/stay-safe-but-stay-connected.md | 2 ++ 5 files changed, 30 insertions(+) diff --git a/.github/workflows/build-blog.yml b/.github/workflows/build-blog.yml index 5d39e790..ca6773f3 100644 --- a/.github/workflows/build-blog.yml +++ b/.github/workflows/build-blog.yml @@ -82,6 +82,18 @@ jobs: pip install mkdocs-material mkdocs-rss-plugin mkdocs-glightbox mkdocs-macros-plugin sudo apt install pngquant + - name: Set base navigation URLs for production build + if: inputs.context == 'production' + run: | + { + echo "MAIN_SITE_BASE_URL=https://www.privacyguides.org/en/" + echo "MAIN_SITE_ABOUT_URL=https://www.privacyguides.org/en/about/" + echo "MAIN_SITE_RECOMMENDATIONS_URL=https://www.privacyguides.org/en/tools/" + echo "MAIN_SITE_KNOWLEDGE_BASE_URL=https://www.privacyguides.org/en/basics/why-privacy-matters/" + echo "ARTICLES_SITE_BASE_URL=https://www.privacyguides.org/articles/" + echo "VIDEOS_SITE_BASE_URL=https://www.privacyguides.org/videos/" + } >> "$GITHUB_ENV" + - name: Build Website (Privileged) if: inputs.privileged run: | diff --git a/.github/workflows/build-videos.yml b/.github/workflows/build-videos.yml index e8764fec..2d24dc63 100644 --- a/.github/workflows/build-videos.yml +++ b/.github/workflows/build-videos.yml @@ -82,6 +82,18 @@ jobs: pip install mkdocs-material mkdocs-rss-plugin mkdocs-glightbox mkdocs-macros-plugin sudo apt install pngquant + - name: Set base navigation URLs for production build + if: inputs.context == 'production' + run: | + { + echo "MAIN_SITE_BASE_URL=https://www.privacyguides.org/en/" + echo "MAIN_SITE_ABOUT_URL=https://www.privacyguides.org/en/about/" + echo "MAIN_SITE_RECOMMENDATIONS_URL=https://www.privacyguides.org/en/tools/" + echo "MAIN_SITE_KNOWLEDGE_BASE_URL=https://www.privacyguides.org/en/basics/why-privacy-matters/" + echo "ARTICLES_SITE_BASE_URL=https://www.privacyguides.org/articles/" + echo "VIDEOS_SITE_BASE_URL=https://www.privacyguides.org/videos/" + } >> "$GITHUB_ENV" + - name: Build Website (Privileged) if: inputs.privileged run: | diff --git a/.github/workflows/publish-immediate.yml b/.github/workflows/publish-immediate.yml index a1f08cf3..c2d97f5e 100644 --- a/.github/workflows/publish-immediate.yml +++ b/.github/workflows/publish-immediate.yml @@ -59,6 +59,7 @@ jobs: repo: ${{ github.repository }} ref: ${{ github.ref }} continue-on-error: false + context: production build_videos: needs: submodule @@ -69,6 +70,7 @@ jobs: repo: ${{ github.repository }} ref: ${{ github.ref }} continue-on-error: false + context: production deploy: needs: [build_blog, build_videos] diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 066ac2b1..3a5b12a8 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -75,6 +75,7 @@ jobs: repo: ${{ github.repository }} ref: ${{ github.ref }} continue-on-error: false + context: production build_videos: needs: submodule @@ -85,6 +86,7 @@ jobs: repo: ${{ github.repository }} ref: ${{ github.ref }} continue-on-error: false + context: production release: name: Create release notes diff --git a/blog/posts/stay-safe-but-stay-connected.md b/blog/posts/stay-safe-but-stay-connected.md index 68c8e647..5ea98ed2 100644 --- a/blog/posts/stay-safe-but-stay-connected.md +++ b/blog/posts/stay-safe-but-stay-connected.md @@ -3,6 +3,8 @@ date: created: 2025-06-10T17:00:00Z categories: - News +tags: + - Pride Month authors: - em description: Balancing data protection and online connection can be difficult. Nevertheless, it's an essential skill to be able to stay safe online while staying connected.