Enable publishing beta builds on snapcraft (#5675)

* Enable publishing beta builds on snapcraft

* fix edit
This commit is contained in:
Filipe Freire
2023-01-16 10:06:19 +00:00
committed by GitHub
parent 237c6e71ba
commit 4ddd0288f6

View File

@@ -155,14 +155,14 @@ jobs:
RELEASE_VERSION: ${{ env.INSO_VERSION }}
RELEASE_CHANNEL: ${{ contains(github.event.inputs.version, 'beta') && 'beta' || 'stable' }}
- name: Upload to snapcraft (stable only)
if: ${{ env.IS_PRERELEASE == 'false' }}
- name: Upload to snapcraft (beta and stable only)
if: "!contains(github.event.inputs.version, 'alpha')"
uses: snapcore/action-publish@7fe468c9de12396a9c8964af5d0dfd1d5b493bd7
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN_FILE }}
with:
snap: artifacts/ubuntu-latest-artifacts/insomnia/dist/Insomnia.Core-${{ env.RELEASE_VERSION }}.snap
release: stable
release: ${{ contains(github.event.inputs.version, 'beta') && 'beta' || 'stable' }}
- name: Upload .deb to pulp (stable only)
if: ${{ env.IS_PRERELEASE == 'false' }}