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:
parent
b3a4b95855
commit
3f1f5b3e16
@ -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
|
||||
|
16
.travis.yml
16
.travis.yml
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user