diff options
-rw-r--r-- | .github/workflows/snap.yaml | 13 | ||||
-rw-r--r-- | snap/snapcraft.yaml | 1 |
2 files changed, 13 insertions, 1 deletions
diff --git a/.github/workflows/snap.yaml b/.github/workflows/snap.yaml index e6890835..d7d89352 100644 --- a/.github/workflows/snap.yaml +++ b/.github/workflows/snap.yaml @@ -3,10 +3,13 @@ on: push: branches: - main + release: + types: + - published jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 concurrency: group: snap-build cancel-in-progress: true @@ -25,8 +28,16 @@ jobs: - run: | sudo sos help - uses: snapcore/action-publish@v1 + if: ${{ github.event_name == 'push' }} env: SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} with: snap: ${{ steps.build-snap.outputs.snap }} release: "latest/edge" + - uses: snapcore/action-publish@v1 + if: ${{ github.event_name == 'release' }} + env: + SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} + with: + snap: ${{ steps.build-snap.outputs.snap }} + release: "latest/candidate" diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 94f427c2..dc3b43e2 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -26,6 +26,7 @@ parts: - python3 - snapcraft - gettext + - python3-venv stage-packages: - python3.10-minimal - libpython3.10-minimal |