Update Split Weights #12
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 }} | |
POPULATE_USER_ID: ${{ secrets.POPULATE_USER_ID }} | |
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 (Eth Global SF 2024) | |
run: cd packages/sdk && pnpm update:weights --range 2024-10-18:2024-10-20 |