snap: deploy: fix authentication (#3551)

Fixes #3550
This commit is contained in:
Casper da Costa-Luis
2020-03-29 22:45:11 +03:00
committed by GitHub
parent eeb6b60fe6
commit 617014ffbb
+1 -1
View File
@@ -153,7 +153,7 @@ deploy:
stage: build
- provider: script
skip_cleanup: true
script: "timeout 600 snapcraft push dvc_*.snap --release $SNAP_CHANNEL || echo timed out"
script: "(echo $SNAP_TOKEN | snapcraft login --with -) && timeout 600 snapcraft push dvc_*.snap --release $SNAP_CHANNEL || echo timed out"
on:
all_branches: true
condition: "$(./scripts/ci/deploy_condition.sh dvc_*.snap) && ($TRAVIS_BRANCH = master || -n $TRAVIS_TAG)"