Skip to content
Snippets Groups Projects
Commit 013f0dec authored by Éloïs's avatar Éloïs
Browse files

[enh] #64 add job to publish crates

parent 78534ba7
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ stages:
- build_and_tests
- clippy
- fmt
- publish
before_script:
- export PATH="$HOME/.cargo/bin:$PATH"
......@@ -56,3 +57,14 @@ fmt:
script:
- cargo fmt -- --write-mode=diff
allow_failure: true
publish:
stage: publish
tags:
- redshift-rs-stable
script:
- ./gitlab/publish.sh
only:
- tags
allow_failure: false
when: manual
\ No newline at end of file
OIFS=$IFS
IFS='/' read -r first a <<< "$CI_COMMIT_TAG"
cd $first
IFS=$OIFS
cargo login $DUNITER_CRATES_TOKEN
cargo publish
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment