chore(ci): notify only if publish succeeds
This commit is contained in:
16
.github/workflows/desktop.release.reuse.yml
vendored
16
.github/workflows/desktop.release.reuse.yml
vendored
@@ -199,6 +199,16 @@ jobs:
|
|||||||
draft: false
|
draft: false
|
||||||
files: packages/desktop/dist/*
|
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
|
- name: Notify Release Update
|
||||||
uses: peter-evans/repository-dispatch@v2
|
uses: peter-evans/repository-dispatch@v2
|
||||||
with:
|
with:
|
||||||
@@ -206,8 +216,4 @@ jobs:
|
|||||||
repository: ${{ secrets.RELEASES_EVENT_RECEIVING_REPO }}
|
repository: ${{ secrets.RELEASES_EVENT_RECEIVING_REPO }}
|
||||||
event-type: releases-updated-event
|
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user