Skip to content

Commit

Permalink
Pushing second action
Browse files Browse the repository at this point in the history
  • Loading branch information
estfe committed Sep 29, 2023
1 parent 7eb6d52 commit 616446c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/push-subraph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Push subgraph

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install yq
run: |
sudo add-apt-repository ppa:rmescandon/yq
sudo apt update
sudo apt install yq -y
yq --version
- name: Read sub.folder.name from folder.yaml and run npm
run: |
FOLDER_NAME=$(yq eval '.sub.folder.name' folder.yaml)
cd $FOLDER_NAME
npm i
npm run deploy
npm build

- name: Read sub.folder.name from folder.yaml and run graph deploy
run: |
FOLDER_NAME=$(yq eval '.sub.folder.name' folder.yaml)
cd $FOLDER_NAME
graph deploy --node ${{ secrets.INFURA_NODE }}"
env:
INFURA_URL: ${{ secrets.INFURA_NODE }}

0 comments on commit 616446c

Please sign in to comment.