Skip to content

Commit

Permalink
update:new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LidamaoHub committed Dec 7, 2023
1 parent ae3dd53 commit 17c965a
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cf-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: cf_auto_deploy

on:
push:
branches:
- feat-mvp # 指定触发此 action 的分支

env:
FOUNDRY_PROFILE: ci
Expand Down
70 changes: 70 additions & 0 deletions .github/workflows/mud-v2.yml
Original file line number Diff line number Diff line change
@@ -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/[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-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



0 comments on commit 17c965a

Please sign in to comment.