Skip to content

feat: Updated deployment for mainnet #1

feat: Updated deployment for mainnet

feat: Updated deployment for mainnet #1

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.

Check failure on line 1 in .github/workflows/deploy-mainnet.yaml

View workflow run for this annotation

GitHub Actions / Deploy to slot

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-mainnet.yaml: The value '0x6d0cc89f47c2fb0a8ee113b47d4f04de5092f68f6ef8cb4d79d77446a4d931f' on line 51 and column 33 is invalid for the type 'tag:yaml.org,2002:int'
# 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: 0x6d0cc89f47c2fb0a8ee113b47d4f04de5092f68f6ef8cb4d79d77446a4d931f
- name: Deploy to cloudflare pages
working-directory: ./client
run: bun wrangler pages deploy
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}