Skip to content
Snippets Groups Projects

Resolve "CI : Add job to publish crates"

Merged Éloïs requested to merge 64-ci-add-job-to-publish-crates into dev

Files

+ 16
1
@@ -2,6 +2,7 @@ stages:
@@ -2,6 +2,7 @@ stages:
- build_and_tests
- build_and_tests
- clippy
- clippy
- fmt
- fmt
 
- publish
before_script:
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
- export PATH="$HOME/.cargo/bin:$PATH"
@@ -55,4 +56,18 @@ fmt:
@@ -55,4 +56,18 @@ fmt:
- cargo install --force rustfmt-nightly
- cargo install --force rustfmt-nightly
script:
script:
- cargo fmt -- --write-mode=diff
- cargo fmt -- --write-mode=diff
allow_failure: true
allow_failure: true
\ No newline at end of file
 
publish:crate:
 
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
Loading