-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
26f6fd7
commit e0f30b5
Showing
4 changed files
with
62 additions
and
32 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# trigger with new tag | ||
name: Deploy subgraphs | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
deploy-studio: | ||
name: Deploy to TheGraph Studio | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: TheGraph Studio | ||
url: https://thegraph.com/explorer/subgraphs/8Lz789DP5VKLXumTMTgygjU2xtuzx8AhbaacgN5PYCAs | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Generate types | ||
run: yarn codegen | ||
|
||
- name: Deploy to the studio | ||
run: | | ||
yarn graph auth --product subgraph-studio ${{ secrets.SUBGRAPH_STUDIO_KEY }} && \ | ||
yarn deploy morpho-blue --version-label ${{ github.ref }} | ||
deploy-satsuma: | ||
name: Deploy to Satsuma | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: Satsuma | ||
url: https://subgraphs.alchemy.com/subgraphs/5856 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
|
||
- name: Generate types | ||
run: yarn codegen | ||
|
||
- name: Deploy to the studio | ||
run: | | ||
yarn deploy morpho-blue \ | ||
--version-label ${{ github.ref }} \ | ||
--node https://subgraphs.alchemy.com/api/subgraphs/deploy \ | ||
--deploy-key ${{ secrets.SATSUMA_DEPLOY_KEY }} \ | ||
--ipfs https://ipfs.satsuma.xy |
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
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