Accrue ARM lending yield per-segment (settle at each allocation + dai… #105
Workflow file for this run
This file contains hidden or 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: Set squid version to prod | |
| on: | |
| push: | |
| tags: | |
| - 'prod-v*' | |
| permissions: | |
| contents: read | |
| packages: read | |
| jobs: | |
| build_and_publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.24.0 | |
| - name: Install squid CLI | |
| run: pnpm add -g @subsquid/cli | |
| - name: Configure GitHub Packages auth | |
| run: pnpm config set //npm.pkg.github.com/:_authToken "$NODE_AUTH_TOKEN" | |
| env: | |
| NODE_AUTH_TOKEN: ${{ github.token }} | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Authenticate to squid | |
| env: | |
| API_TOKEN: ${{ secrets.SQUID_API_TOKEN }} | |
| run: sqd auth -k $API_TOKEN | |
| - name: update squid.yml | |
| run: | | |
| # Get the version from the tag | |
| VERSION=${GITHUB_REF#refs/tags/prod-} | |
| # Update prod tag | |
| sqd tags add prod --name origin-squid -s $VERSION --allow-tag-reassign | |
| - name: update grafana datasource | |
| env: | |
| GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }} | |
| run: node scripts/update-grafana-ds.js | |
| - name: update railway FDW connection | |
| env: | |
| RAILWAY_DATABASE_URL: ${{ secrets.RAILWAY_DATABASE_URL }} | |
| run: | | |
| pnpm add pg | |
| node scripts/update-fdw.js |