-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 1.12 KB
/
Copy pathdeploy-dev.yml
File metadata and controls
45 lines (37 loc) · 1.12 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
37
38
39
40
41
42
43
44
45
name: Deploy Dev
on:
push:
branches:
- main
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy-app:
name: Deploy App to dev-app.2dtiler.com
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v6.0.2
- name: Set up Bun
uses: oven-sh/setup-bun@v2.2.0
- name: Install dependencies
run: bun install
- name: Run tests with coverage
run: bun run test
- name: Build
env:
VITE_SENTRY_DSN: ${{ secrets.VITE_SENTRY_DSN }}
run: bun run build
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
packageManager: bun
wranglerVersion: 4.81.0
command: pages deploy dist --project-name=2dtiler-app --branch=dev