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

Disable crate release job on Travis, add it to GitLab CI configuration

This commit is contained in:
timvisee 2018-10-17 17:48:37 +02:00
parent b3a4b95855
commit 3f1f5b3e16
No known key found for this signature in database
GPG Key ID: 109CBA0BF74036C2
2 changed files with 19 additions and 8 deletions

View File

@ -116,3 +116,14 @@ public-send-test:
- head -c1m </dev/urandom >testfile
- ./ffsend upload testfile -n testfile.bin -a -d 10 -p secret -I
# TODO: download this file, compare checksums
# Cargo crate release
crate:
stage: release
only:
- /^v(\d+\.)*\d+$/
script:
- echo "Creating release crate to publish on crates.io..."
- echo $CARGO_TOKEN | cargo login
- echo "Publishing crate to crates.io..."
- cargo publish --verbose

View File

@ -57,14 +57,14 @@ jobs:
# Release stage #
################################
# Cargo crate release
- stage: release
env: TARGET=x86_64-unknown-linux-gnu
cache: cargo
script:
- echo "Creating release crate on crates.io..."
- echo $CARGO_TOKEN | cargo login
- cargo publish --verbose
# # Cargo crate release
# - stage: release
# env: TARGET=x86_64-unknown-linux-gnu
# cache: cargo
# script:
# - echo "Creating release crate on crates.io..."
# - echo $CARGO_TOKEN | cargo login
# - cargo publish --verbose
# GitHub binary release for Linux on x86/x86_64
- stage: release