-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (30 loc) · 834 Bytes
/
demo.yml
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
name: 'Deploy to Pages'
on:
push:
branches:
- main
jobs:
deploy-demo:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './example/'
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup bun env 🐰
uses: oven-sh/setup-bun@v1
- name: Install dependencies 🚀
run: bun install
- name: Run build 🏁
run: bun run build
env:
VITE_WEATHER_API_KEY: ${{ secrets.VITE_WEATHER_API_KEY }}
- name: Deploy to GitHub Pages 🚀
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./example/dist
# cname: mapbox-gl-interpolate-heatmap.netlify.app