Skip to content

Commit

Permalink
feat(ci): trigger on new GitHub release
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-devatom committed May 22, 2024
1 parent 166e880 commit 5d1db97
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# trigger with new tag
name: Deploy subgraphs

on:
push:
tags:
- 'v*'
release:
types: [released]

jobs:
deploy-studio:
Expand All @@ -31,7 +29,7 @@ jobs:
- name: Deploy to the studio
run: |
yarn graph auth --product subgraph-studio ${{ secrets.SUBGRAPH_STUDIO_KEY }} && \
yarn deploy morpho-blue --version-label ${{ github.ref }}
yarn deploy morpho-blue --version-label ${{ github.release.tag_name }}
deploy-satsuma:
name: Deploy to Satsuma
runs-on: ubuntu-latest
Expand All @@ -56,7 +54,7 @@ jobs:
- name: Deploy to the studio
run: |
yarn deploy morpho-blue \
--version-label ${{ github.ref }} \
--version-label ${{ github.release.tag_name }} \
--node https://subgraphs.alchemy.com/api/subgraphs/deploy \
--deploy-key ${{ secrets.SATSUMA_DEPLOY_KEY }} \
--ipfs https://ipfs.satsuma.xy

0 comments on commit 5d1db97

Please sign in to comment.