Skip to content

Commit 576ed59

Browse files
committed
Upload to crates.io on tag
1 parent 78f7425 commit 576ed59

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.travis.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@ before_deploy:
1313
- mv target/release/{main,task_diff}
1414
- bzip2 -f target/release/task_diff
1515
deploy:
16-
skip_cleanup: true
17-
provider: releases
18-
api_key: $GITHUB_TOKEN
19-
file: target/release/task_diff.bz2
20-
on:
21-
tags: true
22-
rust: stable
16+
- provider: releases
17+
skip_cleanup: true
18+
api_key: $GITHUB_TOKEN
19+
file: target/release/task_diff.bz2
20+
on:
21+
tags: true
22+
rust: stable
23+
- provider: script
24+
script: scripts/upload_to_crates_io.sh
25+
on:
26+
tags: true
27+
rust: stable

scripts/upload_to_crates_io.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash -ex
2+
3+
cargo login "$CRATES_TOKEN"
4+
5+
cargo publish

0 commit comments

Comments
 (0)