Distribute #15
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: Distribute | |
on: | |
schedule: | |
# first day of the month 11 UTC | |
- cron: "0 11 1 * *" | |
defaults: | |
run: | |
working-directory: ./tooling | |
jobs: | |
harvest-schedule: | |
runs-on: ubuntu-latest | |
env: | |
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }} | |
MNEMONIC: ${{ secrets.DELEGATE_MNEMONIC }} | |
name: distribute | |
steps: | |
- uses: actions/checkout@main | |
with: | |
ref: master | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "yarn" | |
cache-dependency-path: "tooling/yarn.lock" | |
- run: yarn install --frozen-lockfile | |
- run: yarn clean | |
- run: yarn compile | |
- run: yarn hardhat distribute:prepare | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Automated Message: Generate Checkpoints & Post Distributions" | |
branch: master | |
commit_user_name: Guild Bot | |
commit_user_email: [email protected] | |
commit_author: Guild Bot <[email protected]> | |
- run: yarn hardhat distribute:apply |