Update Split Weights #7
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: Update Split Weights | |
on: | |
schedule: | |
- cron: "0 19 * * 0" | |
workflow_dispatch: | |
jobs: | |
update-weights: | |
runs-on: ubuntu-latest | |
environment: eth-global-sf | |
env: | |
SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
INFURA_API_URL: ${{ secrets.INFURA_API_URL }} | |
HOT_WALLET_ADDRESS: ${{ secrets.HOT_WALLET_ADDRESS }} | |
HOT_WALLET_PRIVATE_KEY: ${{ secrets.HOT_WALLET_PRIVATE_KEY }} | |
SPLITS_API_KEY: ${{ secrets.SPLITS_API_KEY }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: | | |
- recursive: true | |
args: [--frozen-lockfile, --strict-peer-dependencies] | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
cache: "pnpm" | |
node-version: "20.x" | |
- name: Build sdk | |
run: pnpm build:sdk | |
- name: Update Weights | |
run: cd packages/sdk && pnpm update:weights |