Skip to content
Snippets Groups Projects

Resolve "CI : Add job to publish crates"

Files

+ 16
1
@@ -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: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