mirror of
https://github.com/zhigang1992/connect.git
synced 2026-04-29 09:55:41 +08:00
fix: auto-deploy testnet contracts with github actions
This commit is contained in:
32
.github/workflows/deploy-contracts.yml
vendored
Normal file
32
.github/workflows/deploy-contracts.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: deploy-contracts
|
||||
on:
|
||||
schedule:
|
||||
- cron: "*/15 * * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy-contracts:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
API_SERVER: https://stacks-node-api.blockstack.org
|
||||
CONTRACT_PRIVATE_KEY: ${{ secrets.CONTRACT_PRIVATE_KEY }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Set Node Version
|
||||
uses: actions/setup-node@v2-beta
|
||||
with:
|
||||
node-version: 12.16.1
|
||||
- name: Restore lerna cache
|
||||
id: lerna-cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
*/*/node_modules
|
||||
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
|
||||
- name: Install monorepo deps
|
||||
run: yarn --frozen-lockfile
|
||||
if: steps.lerna-cache.outputs.cache-hit != 'true'
|
||||
- name: Deploy contracts
|
||||
run: yarn deploy-contracts
|
||||
Reference in New Issue
Block a user