From 641123cf5749ec78251bb0808fe8d5562f1597a4 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Sun, 22 Apr 2018 18:55:11 +0200 Subject: [PATCH] [enh] #64 add job to publish crates --- .gitlab-ci.yml | 17 ++++++++++++++++- Cargo.lock | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 96e9fa12..bac1b7bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,6 +2,7 @@ stages: - build_and_tests - clippy - fmt + - publish before_script: - export PATH="$HOME/.cargo/bin:$PATH" @@ -55,4 +56,18 @@ fmt: - cargo install --force rustfmt-nightly script: - cargo fmt -- --write-mode=diff - allow_failure: true \ No newline at end of file + allow_failure: true + +publish: + stage: publish + tags: + - redshift-rs-stable + script: + - IFS='/' read -r first a <<< "$CI_COMMIT_TAG" + - cd $first + - cargo login $DUNITER_CRATES_TOKEN + - cargo publish + only: + - tags + allow_failure: false + when: manual \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 4a85fcb4..e64e6127 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -107,7 +107,7 @@ dependencies = [ [[package]] name = "duniter-wotb" -version = "0.8.0-a0.1" +version = "0.8.0-a0.2" dependencies = [ "bincode 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", -- GitLab