Created
April 14, 2023 11:18
-
-
Save tokdaniel/020ff44d78b7ebe03e84b3716c7dce2b to your computer and use it in GitHub Desktop.
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: Deploy Superfluid VestingScheduler Subgraphs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "release-v1/*" | |
paths: | |
- "packages/subgraph/vesting-scheduler/**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/subgraph/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: 16 | |
- name: Install | |
run: yarn | |
- name: Yaml | |
run: yarn run gen:yaml | |
- name: Types | |
run: yarn gen:types | |
- name: Build | |
run: yarn run build | |
- name: Test | |
run: yarn test | |
- uses: gtaschuk/[email protected] | |
with: | |
graph_access_token: ${{secrets.THE_GRAPH_ACCESS_TOKEN}} | |
graph_subgraph_name: ${{format('vesting-v1-{0}', matrix.networks)}} | |
graph_deploy_studio: "false" | |
graph_account: "superfluid-finance" | |
graph_config_file: ${{format('packages/subgraph/vesting-scheduler/{0}.subgraph.yaml', matrix.networks)}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment