Skip to content

ci: ci deploy alt

ci: ci deploy alt #9

Workflow file for this run

name: nightly deploy contract
on:
- workflow_dispatch
- push
permissions:
contents: write
env:
FOUNDRY_PROFILE: ci
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
ref: "develop" # checkout develop
- uses: pnpm/action-setup@v2.2.4
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- uses: actions/setup-node@v3
with:
node-version: 16
cache: "pnpm"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install dependencies
run: pnpm install
- name: build
run: pnpm build
- name: deploy on alt layer
run: cd packages/contracts; pnpm run deploy:alt
# refer https://github.com/orgs/community/discussions/26560#discussioncomment-3531273
- name: commit deploy to develop branch
run: |
git add packages/contracts/worlds.json;
git config user.email "41898282+github-actions[bot]@users.noreply.github.com";
git config user.name "github-actions[bot]";
git commit -m "chore(deployments)":" deploy on testnet";
git push;