From 5d1db973f9076717837f47db97bce52db5c431ce Mon Sep 17 00:00:00 2001 From: Julien-devatom Date: Wed, 22 May 2024 18:43:46 +0200 Subject: [PATCH] feat(ci): trigger on new GitHub release --- .github/workflows/deploy.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index becb561..00cce00 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,8 @@ -# trigger with new tag name: Deploy subgraphs on: - push: - tags: - - 'v*' + release: + types: [released] jobs: deploy-studio: @@ -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 @@ -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 \ No newline at end of file