From f5566a42270ffe085f14486f9c783ac8db757c5e Mon Sep 17 00:00:00 2001 From: julienmalard Date: Wed, 23 Aug 2023 22:07:28 +0200 Subject: [PATCH] Installer SnapCraft --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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.