diff --git a/.github/workflows/cf-preview.yml b/.github/workflows/cf-preview.yml index 1e84f266..a5014420 100644 --- a/.github/workflows/cf-preview.yml +++ b/.github/workflows/cf-preview.yml @@ -2,6 +2,8 @@ name: cf_auto_deploy on: push: + branches: + - feat-mvp # 指定触发此 action 的分支 env: FOUNDRY_PROFILE: ci diff --git a/.github/workflows/mud-v2.yml b/.github/workflows/mud-v2.yml new file mode 100644 index 00000000..4197113e --- /dev/null +++ b/.github/workflows/mud-v2.yml @@ -0,0 +1,70 @@ +name: cf_auto_deploy + +on: + push: + branches: + - mud-v2 # 指定触发此 action 的分支 + +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/pages-action@v1.5.0 + with: + # Cloudflare API Token + apiToken: ${{ secrets.cfApiToken }} + # Cloudflare Account ID + accountId: ${{ secrets.cfAccountId }} + # The name of the Pages project to upload to + projectName: mississippi-mud-v2 + # 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 + + + \ No newline at end of file