diff --git a/.github/workflows/website-deploy-preview.yml b/.github/workflows/website-deploy-preview.yml index d8b7c34e8..35d52a318 100644 --- a/.github/workflows/website-deploy-preview.yml +++ b/.github/workflows/website-deploy-preview.yml @@ -18,6 +18,8 @@ env: DEPLOYMENT_HOST: pr-${{ github.event.pull_request.number }}.cloudposse-docs.ue2.dev.plat.cloudposse.org ALGOLIA_INDEX_NAME: docs-preview.cloudposse.com ALGOLIA_APP_ID: 32YOERUX83 + GOOGLE_TAG_MANAGER: GTM-ABCD123 + GOOGLE_SITE_VERIFICATION_ID: preview-github # These permissions are needed to interact with the GitHub's OIDC Token endpoint permissions: @@ -90,7 +92,8 @@ jobs: - name: Install Dependencies and Build Website env: - GOOGLE_TAG_MANAGER: GTM-ABCD123 + GOOGLE_TAG_MANAGER: ${{ env.GOOGLE_TAG_MANAGER }} + GOOGLE_SITE_VERIFICATION_ID: ${{ env.GOOGLE_SITE_VERIFICATION_ID }} run: | make init make build-production diff --git a/docusaurus.config.js b/docusaurus.config.js index c66227290..bc2e19fab 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -113,6 +113,7 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ + metadata: [{name: 'google-site-verification', content: process.env.GOOGLE_SITE_VERIFICATION_ID || 'preview-local'}], docs: { sidebar: { hideable: true,