Skip to content

Commit

Permalink
ci: configurable gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Feb 13, 2024
1 parent ecc5b10 commit 8fc54c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/nuxtjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
run: ${{ steps.detect-package-manager.outputs.manager }} run update-diagrams:ci
- name: Static HTML export with Nuxt
run: ${{ steps.detect-package-manager.outputs.manager }} run generate
env:
GTAG_ID: ${{ vars.GTAG_ID }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ export default defineNuxtConfig({
filename: 'sw.ts',
},
gtag: {
id: 'G-Q0DXJPL3FX',
id: process.env.GTAG_ID,
},
});

0 comments on commit 8fc54c1

Please sign in to comment.