diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1fe7a14a..9738e1c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -94,6 +94,14 @@ jobs: RELEASE_NOTE: ${{ needs.draft.outputs.release-note }} run: echo "$RELEASE_NOTE" >> ./buildResources/release-notes.md + - name: Install Snapcraft + uses: samuelmeuli/action-snapcraft@v1 + # Only install Snapcraft on Ubuntu + if: startsWith(matrix.os, 'ubuntu') + with: + # Log in to Snap Store + snapcraft_token: ${{ secrets.SNAPCRAFT_TOKEN }} + # Compile app and upload artifacts - name: Compile & release Electron app uses: samuelmeuli/action-electron-builder@v1 @@ -109,6 +117,7 @@ jobs: # If the commit is tagged with a version (e.g. "v1.0.0"), # release the app after building + # ${{ startsWith(github.ref, 'refs/tags/v') }} release: true # Sometimes the build may fail due to a connection problem with Apple, GitHub, etc. servers.