-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.22 KB
/
main.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
name: CI/CD
on: [push]
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Instal Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Yarn
run: npm install -g yarn
- name: Install rust & cargo
run: rustup update stable && rustup default stable
- name: Setup cargo Cache
uses: Swatinem/rust-cache@v2.7.3
- name: Install wasm-pack
uses: jetli/wasm-pack-action@v0.4.0
- name: Install protoc
uses: arduino/setup-protoc@v3.0.0
- name: Build rust-game
run: yarn build:rust
- name: Install dependencies
run: yarn
- name: Build frontend
run: yarn build
- name: Deploy
uses: cloudflare/pages-action@v1.5.0
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: polyburn
directory: ./packages/web/dist