1052 subgraph a claimed token should indicate whether it was claimed … #24
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
# NOTE: This name appears in GitHub's Checks API and in workflow's status badge. | |
name: deploy-graph | |
env: | |
SUBGRAPH_ACCESS_TOKEN: ${{ secrets.SUBGRAPH_ACCESS_TOKEN }} | |
# Trigger the workflow when: | |
on: | |
# A push occurs to one of the matched branches. | |
push: | |
branches: | |
- main | |
- develop | |
paths: | |
- graph/** | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
deploy-graph: | |
# NOTE: This name appears in GitHub's Checks API. | |
name: deploy-graph | |
environment: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Set up Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
cache: "yarn" | |
node-version: "18.x" | |
- name: Install | |
run: yarn install --immutable | |
- name: Build the subgraph | |
run: yarn build:graph | |
- name: Deploy the subgraph to goerli testnet | |
if: github.ref == 'refs/heads/develop' | |
run: yarn deploy:graph:goerli | |
- name: Deploy the subgraph to Optimism mainnet | |
if: github.ref == 'refs/heads/main' | |
run: yarn deploy:graph:optimism |