-
Notifications
You must be signed in to change notification settings - Fork 41
49 lines (48 loc) · 1.41 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Deploy demo
on:
workflow_dispatch:
push:
paths:
[
"demo/**",
"demo_markdown/**",
"thaw/**",
"thaw_components/**",
"thaw_utils/**",
]
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
environment: demo
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
- name: Install Trunk
uses: jetli/[email protected]
with:
version: "latest"
- name: Build
run: |
cd demo
trunk build --release
- name: Deploy
uses: amondnet/vercel-action@v20
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: "--prod"
working-directory: demo/dist
vercel-project-name: thaw