-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (46 loc) · 1.66 KB
/
deploy-mainnet.yaml
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
57
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will install Deno then run `deno lint` and `deno test`.
# For more information see: https://github.com/denoland/setup-deno
name: Deploy to slot
on:
push:
branches:
- '1on1-mainnet'
- 'deployment-mainnet'
permissions:
contents: read
jobs:
slot-deployment:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v4
- id: setup-dojo
uses: runelabsxyz/setup-dojo@main
with:
version: 'v1.0.0-alpha.13'
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
working-directory: ./client
run: bun install --frozen-lockfile
- name: Build frontend for slot
run: bun run build
working-directory: ./client
env:
ENV: mainnet
# Force the auto bundler to prepare for cloudflare (otherwise it does weird things)
CF_PAGES: '1'
# For now, isok, but getting an official file at some point would be nice:
PUBLIC_TORII_URL: https://api.cartridge.gg/x/octoguns-mn-alpha-1/torii
PUBLIC_RPC_URL: https://api.cartridge.gg/x/starknet/mainnet
PUBLIC_WORLD_ADDRESS: '0x7447477a7c852c946f0b8d13ebdfe0db9e78f3de60ab799320691502b4d32a3'
- name: Deploy to cloudflare pages
working-directory: ./client
run: bun wrangler pages deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}