Skip to content

Commit de9246c

Browse files
committed
update
1 parent c1a7e5d commit de9246c

2 files changed

Lines changed: 30 additions & 34 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,45 @@
1-
name: Deploy to GitHub Pages
1+
name: Build and Deploy
22

33
on:
44
push:
55
branches:
66
- main
7-
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
812

913
concurrency:
10-
group: github-pages
14+
group: pages
1115
cancel-in-progress: true
1216

1317
jobs:
14-
build:
18+
build-and-deploy:
1519
runs-on: ubuntu-latest
16-
permissions:
17-
contents: read
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
1823
steps:
19-
- name: Checkout repository
20-
uses: actions/checkout@v4
24+
- name: Checkout
25+
uses: actions/checkout@v6
2126

22-
- name: Setup Node.js
23-
uses: actions/setup-node@v4
27+
- name: Setup Node
28+
uses: actions/setup-node@v6
2429
with:
25-
node-version: 20
30+
node-version: 22
2631
cache: npm
2732

28-
- name: Setup Pages
29-
uses: actions/configure-pages@v5
30-
with:
31-
enablement: true
32-
33-
- name: Install dependencies
34-
run: npm ci
35-
36-
- name: Build site
33+
- name: Install and Build
3734
env:
3835
VITE_BASE_PATH: /ebird-hotspot-deduper/
39-
run: npm run build
36+
run: npm ci && npm run build
4037

41-
- name: Upload Pages artifact
42-
uses: actions/upload-pages-artifact@v3
38+
- name: Upload Artifact
39+
uses: actions/upload-pages-artifact@v4
4340
with:
4441
path: dist
4542

46-
deploy:
47-
needs: build
48-
runs-on: ubuntu-latest
49-
permissions:
50-
pages: write
51-
id-token: write
52-
environment:
53-
name: github-pages
54-
url: ${{ steps.deployment.outputs.page_url }}
55-
steps:
56-
- name: Deploy to GitHub Pages
43+
- name: Deploy
5744
id: deployment
5845
uses: actions/deploy-pages@v4

index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
<link rel="icon" href="favicon.ico">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>eBird Hotspot Deduper</title>
8+
<!-- Google tag (gtag.js) -->
9+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-K175WNNF6G"></script>
10+
<script>
11+
window.dataLayer = window.dataLayer || [];
12+
function gtag(){dataLayer.push(arguments);}
13+
gtag('js', new Date());
14+
15+
gtag('config', 'G-K175WNNF6G');
16+
</script>
817
</head>
918
<body>
1019
<div id="app"></div>

0 commit comments

Comments
 (0)