-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (46 loc) · 1.49 KB
/
build.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: build
on:
push:
branches: [ "main" ]
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.TOKEN_APP_ID }}
private-key: ${{ secrets.TOKEN_PRIVATE_KEY }}
- uses: google-github-actions/release-please-action@v4
id: release-please
with:
token: ${{ steps.app-token.outputs.token }}
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: '22.5.1'
cache: npm
- uses: mymindstorm/setup-emsdk@v14
with:
actions-cache-folder: .emsdk-cache
- uses: seanmiddleditch/gha-setup-ninja@master
- name: "Install dependencies"
run: npm ci
- name: "Build"
run: npm run build -ws
- name: Deploy
if: ${{ steps.release-please.outputs.release_created }}
run: npm run deploy -w packages/web
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
VITE_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}