-
Notifications
You must be signed in to change notification settings - Fork 0
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
d00c155
commit a7925cc
Showing
3 changed files
with
45 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy-arbitrum: | ||
name: Deploy Arbitrum | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up environment | ||
uses: ./.github/actions/setup | ||
- name: Deploy Arbitrum | ||
env: | ||
GRAPH_KEY: ${{ secrets.GRAPH_KEY }} | ||
run: yarn deploy:arbitrum |
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,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit script as soon as a command fails. | ||
set -o errexit | ||
|
||
# Run graph build | ||
yarn build:$NETWORK | ||
|
||
# Require $GRAPH_KEY to be set | ||
if [[ -z "${GRAPH_KEY}" ]]; then | ||
echo "Please set \$GRAPH_KEY to your The Graph deploy key to run this command." | ||
exit 1 | ||
fi | ||
|
||
# Deploy subgraph | ||
graph deploy mimic-fi/v3-$NETWORK --product hosted-service --access-token "$GRAPH_KEY" |