First Testnet Release #1
Workflow file for this run
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: Release Workflow | |
on: | |
release: | |
types: [released] | |
jobs: | |
build-test-deploy: | |
runs-on: ubuntu-latest | |
environment: testnet #change to mainnet before production | |
strategy: | |
matrix: | |
node-version: ['20.x'] | |
env: | |
RPC_URL: ${{ secrets.RPC_URL }} | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Yarn | |
run: npm install --global yarn | |
- name: Install Dependencies | |
run: yarn install | |
- name: Compile | |
run: yarn run compile | |
- name: Run Tests | |
run: yarn run test | |
- name: Create deployment folder | |
run: mkdir ./data/deployments | |
- name: Run Deploy | |
run: yarn run deploy --network testnet #change to mainnet before production | |
- name: Export Contract Addresses | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_options: '--no-verify --signoff' | |
branch: main | |
push_options: '--force' | |
file_pattern: './data/deployments/*.json' |