Don’t upload extra snap files, use deb version for snap version

This commit is contained in:
Ben Gotow 2017-10-05 13:30:01 -07:00
parent 54339964a8
commit 36fdd024f8
2 changed files with 5 additions and 5 deletions

View file

@ -17,8 +17,8 @@ addons:
- mailsync.tar.gz
- Mailspring.dmg
- Mailspring.zip
- $(find . -type f -name *.deb | tr "\n" ":")
- $(find . -type f -name *.rpm | tr "\n" ":")
- $(find . -type f -name mailspring-*.deb | tr "\n" ":")
- $(find . -type f -name mailspring-*.rpm | tr "\n" ":")
apt:
sources:
- ubuntu-toolchain-r-test
@ -103,5 +103,5 @@ deploy:
'on':
branch: master
provider: script
script: docker run -v $(pwd):$(pwd) -t snapcore/snapcraft sh -c "apt update -qq && cd $(pwd) && snapcraft && snapcraft push *.snap --release edge"
script: docker run --env MAILSPRING_VERSION="$(grep -E -o '([0-9]+.[0-9]+.[0-9]+)' <<< "$(find app/dist -type f -name mailspring-*.deb)")" -v $(pwd):$(pwd) -t snapcore/snapcraft sh -c "apt update -qq && cd $(pwd) && snapcraft && snapcraft push *.snap --release edge"
skip_cleanup: true

View file

@ -1,5 +1,5 @@
name: mailspring
version: 1.0.1
version: $MAILSPRING_VERSION
summary: The best email app for people and teams at work
description: |
An extensible desktop mail app built on the modern web.
@ -9,7 +9,7 @@ confinement: strict
parts:
mailspring:
plugin: dump
source: https://mailspring-builds.s3.amazonaws.com/client/ba1d6734/linux/mailspring-1.0.1-amd64.deb
source: ./app/dist/mailspring-$MAILSPRING_VERSION-amd64.deb
source-type: deb
# Correct path to icon.
prepare: |