Use latest version #18
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 Subgraph to Goldsky | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy-subgraph: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: codegen | |
run: npm run codegen | |
- name: build | |
run: npm run build | |
- name: Deploy Subgraph | |
uses: goldsky-io/goldsky-deploy@latest | |
with: | |
api_key: ${{ secrets.GOLDSKY_API_KEY }} | |
subgraph_name: "ethereum-blocks" | |
path: "." |