diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index a14f8fb7d..8db82f35b 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -12,6 +12,7 @@ jobs: update-analytics: if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest + environment: github-pages # Specify the environment here steps: - uses: actions/checkout@v4 @@ -33,6 +34,7 @@ jobs: deploy: if: github.event_name == 'push' runs-on: ubuntu-latest + environment: github-pages # Specify the environment here steps: - uses: actions/checkout@v4 with: @@ -58,6 +60,11 @@ jobs: ${{ runner.os }}-node- - run: npm ci + env: + GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} + GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }} + GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }} + PROPERTY_ID: ${{ secrets.PROPERTY_ID }} - run: npm run build - name: Deploy diff --git a/package.json b/package.json index f33d92332..3dc313223 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "start-prod": "cross-env ELEVENTY_WATCH=true ELEVENTY_ENV=prod npm-run-all sass-start serve:port --parallel watch:*", "dev": "cross-env ELEVENTY_ENV=dev npm-run-all analytics sass-build --parallel eleventy", "debug": "DEBUG=Eleventy* npx @11ty/eleventy", - "build": "npm-run-all sass-build eleventy" + "build": "npm-run-all analytics sass-build eleventy" }, "repository": { "type": "git",