From 617014ffbb1a7bf19fde237bf515f932be043a9c Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Sun, 29 Mar 2020 20:45:11 +0100 Subject: [PATCH] snap: deploy: fix authentication (#3551) Fixes #3550 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e22cf3486e..9c87f26996 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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)"