diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index faa5e18..2f36a73 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -128,8 +128,9 @@ jobs: id: build if: env.SHOULD_DEPLOY == 'yes' - - name: Release snap - run: ./stores/snapcraft/release.sh - env: - SNAP_STORE_LOGIN: ${{ secrets.SNAP_STORE_LOGIN }} + - uses: snapcore/action-publish@v1 + with: + store_login: ${{ secrets.SNAP_STORE_LOGIN }} + snap: ${{ steps.build.outputs.snap }} + release: stable if: env.SHOULD_DEPLOY == 'yes' diff --git a/stores/snapcraft/release.sh b/stores/snapcraft/release.sh deleted file mode 100755 index 6402b0c..0000000 --- a/stores/snapcraft/release.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -set -e - -CALLER_DIR=$( pwd ) - -cd "$( dirname "${BASH_SOURCE[0]}" )" - -snapcraft upload --release=stable *.snap - -cd "${CALLER_DIR}" diff --git a/stores/snapcraft/snap/snapcraft.yaml b/stores/snapcraft/snap/snapcraft.yaml index 5a0380d..26d7a15 100644 --- a/stores/snapcraft/snap/snapcraft.yaml +++ b/stores/snapcraft/snap/snapcraft.yaml @@ -33,6 +33,8 @@ parts: sed -i 's|Icon=codium|Icon=${SNAP}/usr/share/pixmaps/codium.png|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium.desktop sed -i 's|Exec=/usr/share/codium/codium|Exec=codium|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium.desktop sed -i 's|Icon=codium|Icon=/usr/share/pixmaps/codium.png|g' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/codium-url-handler.desktop + # Fix ACL + chmod 755 ${SNAPCRAFT_PART_INSTALL}/usr/share/codium/chrome-sandbox # Set version echo $VERSION > $SNAPCRAFT_STAGE/version snapcraftctl set-version "$VERSION"