1
0
mirror of https://github.com/timvisee/ffsend.git synced 2025-01-31 19:51:35 +01:00

Build snapcraft package on GitLab CI

This commit is contained in:
timvisee 2019-01-03 14:08:50 +01:00
parent 573c4862ca
commit 151609983f
No known key found for this signature in database
GPG Key ID: 109CBA0BF74036C2

View File

@ -131,3 +131,22 @@ crate:
- echo $CARGO_TOKEN | cargo login
- echo "Publishing crate to crates.io..."
- cargo publish --verbose --allow-dirty
# Snap release
snap:
image: snapcore/snapcraft
stage: release
# only:
# - /^v(\d+\.)*\d+$/
before_script: []
script:
- echo "Building snap package..."
- cd pkg/snap
- snapcraft
# TODO: See: https://docs.snapcraft.io/rust-applications/7826
# TODO: - login to registry
# TODO: - test built snap
# TODO: - push snap to snapcraft.io
# - echo "Publishing snap package..."
# - echo "$SNAP_USER\n&SNAP_PASS" | snapcraft login
# - snapcraft push --release=edge ffsend_amd64.snap