Snapcraft login shouldn't be called when credentials are set via env var. (#600)

Signed-off-by: Jakub Martin <kubam@spacelift.io>
This commit is contained in:
Kuba Martin 2023-09-27 12:15:28 +02:00 committed by GitHub
parent be4f7fad88
commit 2c01380709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,6 @@ jobs:
- name: Setup snapcraft
run: |
sudo snap install snapcraft --classic --channel=7.x/stable
snapcraft login
# See https://github.com/goreleaser/goreleaser/issues/1715
mkdir -p "$HOME/.cache/snapcraft/download"
@ -68,3 +67,4 @@ jobs:
args: release --clean --timeout=60m --snapshot=${{ !startsWith(github.ref, 'refs/tags/v') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_TOKEN }}