Skip to content

Commit 760f2dc

Browse files
committed
Move Google Analytics token to Repo Variable so people stop forking it
Fix envsubst syntax testing Fix fix
1 parent 471d0ff commit 760f2dc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ jobs:
2424
# Build job
2525
build:
2626
runs-on: ubuntu-latest
27+
env:
28+
JEKYLL_CONFIG_GOOGLE_ANALYICS: ${{ vars.JEKYLL_CONFIG_GOOGLE_ANALYICS }}
2729
steps:
2830
- name: Checkout
2931
uses: actions/checkout@v4
32+
- name: Generate config from template
33+
run: envsubst < _config.template.yml > _config.yml
3034
- name: Setup Pages
3135
uses: actions/configure-pages@v5
3236
- name: Build with Jekyll

_config.yml renamed to _config.template.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ plugins:
7070
- jekyll-sitemap
7171

7272
google_analytics:
73-
- UA-185058308-1 # Old GA Universal Analytics property
74-
- G-RY6FRPMXHZ # New GA4 property
73+
- ${JEKYLL_CONFIG_GOOGLE_ANALYICS}
7574

7675
gravatar_hash: 2136e716a089f4a3794f4007328c7bfb
7776
code_block_max_height: 500px

0 commit comments

Comments
 (0)