From 1c746ae698a7b7fbe3f6af8b9588332941af9cb1 Mon Sep 17 00:00:00 2001 From: Shawn Thompson Date: Fri, 25 Oct 2024 10:58:46 -0400 Subject: [PATCH] add analytics to build for deploy --- .github/workflows/gh-pages.yml | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index a14f8fb7d..235d8b72d 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 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",