fix: fix bug #243
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 clinet | |
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: main | |
# The working directory in which to run Wrangler | |