Create indexer for LivepeerGovernor (treasury) proposals (#157) #171
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 | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: "Deploy to Subgraph" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: yarn | |
- name: Install | |
run: yarn --immutable | |
- name: Deploy to Arbitrum Goerli | |
if: github.ref != 'refs/heads/main' | |
run: yarn deploy:arbitrum-goerli --deploy-key $SUBGRAPH_ACCESS_TOKEN | |
env: | |
SUBGRAPH_ACCESS_TOKEN: ${{ secrets.SUBGRAPH_ACCESS_TOKEN }} | |
- name: Deploy to Arbitrum One | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
run: yarn deploy:arbitrum-one --deploy-key $SUBGRAPH_ACCESS_TOKEN | |
env: | |
SUBGRAPH_ACCESS_TOKEN: ${{ secrets.SUBGRAPH_ACCESS_TOKEN }} |