-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (44 loc) · 1.17 KB
/
deploy.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
name: Deploy
on:
push:
branches: [deploy]
pull_request:
branches: [deploy]
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
deployments: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout from repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: wasm32-unknown-unknown
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: wgpu-compute-toy
- run: cargo install wasm-pack
- uses: actions/setup-node@v4
with:
node-version: node
cache: 'yarn'
- run: yarn
- run: yarn build
- name: Deploy to Vercel Action
uses: BetaHuhn/deploy-to-vercel-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}