This repository has been archived by the owner on May 17, 2024. It is now read-only.
forked from Uniswap/v3-subgraph
-
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
e7eb76f
commit b8c9f56
Showing
15 changed files
with
168 additions
and
236 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
name: dev-release | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
# allow manual dispatch on action tab | ||
workflow_dispatch: | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
jobs: | ||
the-graph-deploy-seidev: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/cache@v3 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-main-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-main- | ||
- name: Git clone the repository | ||
uses: actions/checkout@v4 | ||
|
||
- run: yarn install --prefer-offline | ||
- run: echo "./node_modules/.bin" >> $GITHUB_PATH | ||
- run: graph codegen --output-dir src/types/ && graph build | ||
- run: graph auth --studio ${{ secrets.THEGRAPH_SEIDEV_AUTH_KEY }} && graph deploy --studio encryptx-miro-seidev |
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,63 @@ | ||
name: prd-release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
|
||
jobs: | ||
check-current-branch: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
branch: ${{ steps.check_step.outputs.branch }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get current branch | ||
id: check_step | ||
# 1. Get the list of branches ref where this tag exists | ||
# 2. Remove 'origin/' from that result | ||
# 3. Put that string in output | ||
# => We can now use function 'contains(list, item)'' | ||
run: | | ||
raw=$(git branch -r --contains ${{ github.ref }}) | ||
branch="$(echo ${raw//origin\//} | tr -d '\n')" | ||
echo "{name}=branch" >> $GITHUB_OUTPUT | ||
echo "Branches where this tag exists : $branch." | ||
the-graph-deploy: | ||
runs-on: ubuntu-latest | ||
# Wait for check step to finish | ||
needs: check-current-branch | ||
# only run if tag is present on branch 'main' | ||
if: contains(${{ needs.check.outputs.branch }}, 'main')` | ||
|
||
# it is required for passing AWS IAM policy | ||
environment: prod | ||
|
||
steps: | ||
- uses: actions/setup-node@v4 | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/cache@v3 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-main-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-main- | ||
- name: Git clone the repository | ||
uses: actions/checkout@v4 | ||
|
||
- run: yarn install | ||
- run: graph codegen && graph build && graph auth --studio ${{ runner.os }} |
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,41 @@ | ||
name: stg-release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags-ignore: | ||
- 'v*' | ||
|
||
# allow manual dispatch on action tab | ||
workflow_dispatch: | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
jobs: | ||
the-graph-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
|
||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- uses: actions/cache@v3 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-main-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-main- | ||
- name: Git clone the repository | ||
uses: actions/checkout@v4 | ||
|
||
- run: yarn install | ||
|
||
- name: TheGraph build | ||
run: graph codegen && graph build | ||
|
||
- name: TheGraph deploy | ||
run: graph auth --studio ${{ secrets.THEGRAPH_SEIDEV_AUTH_KEY }} && graph deploy --studio encryptx-miro-seidev |
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 |
---|---|---|
|
@@ -2,4 +2,7 @@ build/ | |
node_modules/ | ||
src/types/ | ||
.DS_STORE | ||
yarn-error.log | ||
yarn-error.log | ||
generated/ | ||
.vscode | ||
.idea |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.