Skip to content

Commit

Permalink
fix: deployment workflow (attempt 3) (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoslr authored Nov 15, 2023
1 parent a7e4946 commit 95eaa94
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/actions/deploy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ runs:
steps:
- uses: actions/checkout@v3
- name: Get yarn cache directory path
shell: sh
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v3
Expand All @@ -21,10 +22,14 @@ runs:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn
- name: install packages
shell: sh
run: yarn
- uses: ./.github/actions/short-sha
id: short-sha
- run: yarn subgraph deploy ${{ input.chain }}
- name: Deploy subgraph
shell: sh
run: yarn subgraph deploy ${{ inputs.chain }}
env:
TOKEN: ${{ input.token }}
TOKEN: ${{ inputs.token }}
VERSION: ${{ steps.short-sha.outputs.hash }}

0 comments on commit 95eaa94

Please sign in to comment.