-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae3dd53
commit 17c965a
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ name: cf_auto_deploy | |
|
||
on: | ||
push: | ||
branches: | ||
- feat-mvp # 指定触发此 action 的分支 | ||
|
||
env: | ||
FOUNDRY_PROFILE: ci | ||
|
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
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 | ||
|
||
|
||
|