Merge pull request #22 from aavegotchi/feat/isBuyNow #39
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 to Hosted Service | |
on: | |
push: | |
branches: main | |
jobs: | |
buildAndDeploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Install Yarn | |
run: npm i -g yarn | |
- name: Install Libs | |
run: yarn --frozen-lockfile | |
- name: Codegen | |
run: yarn codegen | |
- name: Build | |
run: yarn build | |
- name: Deploy to TheGraph Hosted Service | |
run: | | |
npx graph deploy --access-token ${{secrets.GRAPH_ACCESS_TOKEN}} aavegotchi/aavegotchi-gbm-baazaar-mumbai subgraph.mumbai.yaml --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ | |
npx graph deploy --access-token ${{secrets.GRAPH_ACCESS_TOKEN}} aavegotchi/aavegotchi-gbm-baazaar-matic subgraph.yaml --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ | |
shell: bash |