-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from superfluid-finance/goldsky
wip: goldsky
- Loading branch information
Showing
9 changed files
with
253 additions
and
53 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Deploy VestingScheduler Subgraphs (Goldsky) | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "release-v1/*" | ||
- "goldsky" | ||
paths: | ||
- "subgraphs/vesting-scheduler/**" | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: subgraphs/vesting-scheduler | ||
strategy: | ||
matrix: | ||
networks: | ||
[ | ||
"avalanche-c", | ||
"arbitrum-one", | ||
"bsc-mainnet", | ||
"eth-mainnet", | ||
"eth-goerli", | ||
"xdai-mainnet", | ||
"optimism-mainnet", | ||
"polygon-mainnet", | ||
"polygon-mumbai", | ||
] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18 | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Install | ||
run: pnpm install | ||
- name: Generate YAML & Types | ||
run: pnpm gen | ||
- name: Build | ||
run: pnpm exec graph build ${{format('./{0}.subgraph.yaml', matrix.networks)}} | ||
- name: Test | ||
run: pnpm test | ||
- name: Goldsky Auth | ||
run: pnpm exec goldsky login --token ${{secrets.GOLDSKY_API_KEY}} | ||
- name: Get Version | ||
id: get-version | ||
uses: actions/github-script@v4 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const fs = require('fs'); | ||
const packageJson = JSON.parse(fs.readFileSync('package.json')); | ||
return packageJson.version; | ||
- name: Goldsky Deploy | ||
run: pnpm exec goldsky subgraph deploy ${{format('vesting-v1-{0}/{1}', matrix.networks, steps.get-version.outputs.result) }} --path ./build | ||
- name: Goldsky Tag | ||
run: pnpm exec goldsky subgraph tag ${{format('vesting-v1-{0}/{1}', matrix.networks, steps.get-version.outputs.result) }} --tag latest |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.