-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.34 KB
/
deploy.yml
File metadata and controls
36 lines (34 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# .github/workflows/deploy.yml
name: Deploy
on:
push:
branches:
- main
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Inject tokens
env:
APIFY_TOKEN: ${{ secrets.APIFY_TOKEN }}
GOOGLE_TOKEN: ${{ secrets.GOOGLE_TOKEN }}
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
run: |
sed -i "s/__APIFY_TOKEN__/${APIFY_TOKEN}/g" map.js 19hz/map.js
sed -i "s/__GOOGLE_TOKEN__/${GOOGLE_TOKEN}/g" map.js 19hz/map.js
sed -i "s/__GOOGLE_TOKEN__/${GOOGLE_TOKEN}/g" index.html 19hz/index.html
sed -i "s/__SPOTIFY_CLIENT_ID__/${SPOTIFY_CLIENT_ID}/g" 19hz/map.js
sed -i "s/__SPOTIFY_CLIENT_SECRET__/${SPOTIFY_CLIENT_SECRET}/g" 19hz/map.js
sed -i "s/__SENTRY_DSN__/${SENTRY_DSN}/g" index.html 19hz/index.html
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .
branch: gh-pages
clean-exclude: preview
force: false