Fix GitLab CI configuration error

This commit is contained in:
timvisee 2019-03-06 16:48:23 +01:00
parent 7e5cfe9e3b
commit 13a2f0082d
No known key found for this signature in database
GPG key ID: B8DB720BC383E172

View file

@ -170,15 +170,13 @@ snap:
# Update version number in snapcraft.yml
- VERSION=$(echo $CI_COMMIT_REF_NAME | cut -c 2-)
- echo "Determined binary version number 'v$VERSION', updating snapcraft.yml..."
- sed "s/^version:.*\$/version: $VERSION/" -i snapcraft.yml
- sed "s/^pkgver=.*\$/pkgver=$VERSION/" -i snapcraft.yml
- 'sed "s/^version:.*\$/version: $VERSION/" -i snapcraft.yml'
- 'sed "s/^pkgver=.*\$/pkgver=$VERSION/" -i snapcraft.yml'
# Build the package
- echo "Building snap package..."
- snapcraft
# TODO: test snap package
# Publish snap package
- echo "Publishing snap package..."
- echo "$SNAP_MAIL\n&SNAP_PASSWORD" | snapcraft login