Skip to content

Commit

Permalink
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
Browse files Browse the repository at this point in the history
…to feat-mvp
  • Loading branch information
TiyoSheng committed Oct 30, 2023
2 parents 623906c + 63801bc commit b4e9e12
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 68 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/cf-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: cf_auto_deploy

on:
push:

env:
FOUNDRY_PROFILE: ci
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}

permissions:
pull-requests: write
deployments: write
contents: write

jobs:
build:
strategy:
fail-fast: true
name: MUD project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18

- name: Install pnpm
run: npm install -g pnpm

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly


- name: Install dependencies
run: pnpm install --loglevel verbose --no-frozen-lockfile

- name: deploy on lattice testnet
run: cd packages/contracts; pnpm run deploy:testnet

- name: build
run: pnpm build


- name: Cloudflare Pages GitHub Action
# You may pin to the exact commit or the version.
# uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca
uses: cloudflare/[email protected]
with:
# Cloudflare API Token
apiToken: ${{ secrets.cfApiToken }}
# Cloudflare Account ID
accountId: ${{ secrets.cfAccountId }}
# The name of the Pages project to upload to
projectName: mississippi
# The directory of static assets to upload
directory: ./packages/client/dist
# The name of the branch you want to deploy to
branch: feat-mvp
# The working directory in which to run Wrangler

- name: Vercel Action
uses: amondnet/vercel-action@v25

with:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
working-directory: ./packages/client/dist
scope: ${{secrets.TEAM_SLUG}}

65 changes: 0 additions & 65 deletions .github/workflows/vercel-preview.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
node_modules
.env
packages/contracts/src/codegen/
pnpm-lock.yaml
packages/contracts/worlds.json
.DS_Store
# worlds.json
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const root = ReactDOM.createRoot(rootElement);


// https://vitejs.dev/guide/env-and-mode.html
if (import.meta.env.DEV) {
// if (import.meta.env.DEV) {
const { mount: mountDevTools } = await import("@latticexyz/dev-tools");
const comp = [];
network.world.components.forEach((c) => {
Expand All @@ -46,4 +46,4 @@ if (import.meta.env.DEV) {
write$: network.write$,
recsWorld: network.world,
});
}
// }

0 comments on commit b4e9e12

Please sign in to comment.