diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index a4dfdbfb9157..8bd3d5a4c110 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -47,7 +47,7 @@ jobs: CDN_PULUMI_URN: ${{ vars.CDN_PULUMI_URN }} PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} PULUMI_STACK_NAME: ${{ vars.PULUMI_STACK_NAME }} - DEPLOYMENT_ENVIRONMENT: ${{ vars.DEPLOYMENT_ENVIRONMENT }} + DEPLOYMENT_ENVIRONMENT: "production" SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PULUMI_BOT_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e00ca8f85a08..9bcd0515d011 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -294,7 +294,9 @@ {{- if eq hugo.Environment "production" }} - + {{- end }} diff --git a/scripts/ci-pull-request.sh b/scripts/ci-pull-request.sh index 81c0006cba2d..359f17860301 100755 --- a/scripts/ci-pull-request.sh +++ b/scripts/ci-pull-request.sh @@ -7,18 +7,18 @@ set -o errexit -o pipefail if [ -z "${AWS_ACCESS_KEY_ID:-}" ] || [ -z "${AWS_SECRET_ACCESS_KEY:-}" ] || [ -z "${PULUMI_ACCESS_TOKEN:-}" ]; then echo "Missing secret tokens, possibly due to a forked PR." echo "Running a build, but will skip the sync to S3 and Pulumi preview." - ./scripts/build-site.sh preview + ./scripts/build-site.sh exit fi source ./scripts/ci-login.sh -./scripts/build-site.sh preview -./scripts/sync-and-test-bucket.sh preview +./scripts/build-site.sh +./scripts/sync-and-test-bucket.sh ./scripts/generate-search-index.sh -./scripts/run-pulumi.sh preview +./scripts/run-pulumi.sh ./scripts/make-s3-redirects.sh # Temporarily disable 404 detection (too many false positives)