From e079e0ec860b689e4671047daca831f306a530b7 Mon Sep 17 00:00:00 2001 From: Mo Date: Wed, 13 Sep 2023 07:24:37 -0500 Subject: [PATCH] chore(ci): notify only if publish succeeds --- .github/workflows/desktop.release.reuse.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/desktop.release.reuse.yml b/.github/workflows/desktop.release.reuse.yml index 453215009..354cc7dc8 100644 --- a/.github/workflows/desktop.release.reuse.yml +++ b/.github/workflows/desktop.release.reuse.yml @@ -199,6 +199,16 @@ jobs: draft: false files: packages/desktop/dist/* + - name: Publish Snap + continue-on-error: true + run: | + sudo snap install snapcraft --classic + snapcraft upload dist/standard-notes-${{ env.APP_VERSION }}-linux-amd64.snap --release stable,candidate,beta,edge + + Notify: + runs-on: ubuntu-latest + needs: [Publish] + steps: - name: Notify Release Update uses: peter-evans/repository-dispatch@v2 with: @@ -206,8 +216,4 @@ jobs: repository: ${{ secrets.RELEASES_EVENT_RECEIVING_REPO }} event-type: releases-updated-event - - name: Publish Snap - continue-on-error: true - run: | - sudo snap install snapcraft --classic - snapcraft upload dist/standard-notes-${{ env.APP_VERSION }}-linux-amd64.snap --release stable,candidate,beta,edge +