1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
image: rust:latest stages: - test - publish test: stage: test script: - cargo test publish: only: - tags stage: publish before_script: - echo "$CARGO_IO_CREDENTIALS" > $CARGO_HOME/credentials script: - cargo package - cargo publish