We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 576ed59 commit 292213fCopy full SHA for 292213f
.travis.yml
@@ -8,6 +8,9 @@ matrix:
8
- rust: nightly
9
fast_finish: true
10
11
+after_success:
12
+ - scripts/push_version.sh
13
+
14
before_deploy:
15
- cargo build --release
16
- mv target/release/{main,task_diff}
scripts/push_version.sh
@@ -0,0 +1,11 @@
1
+#!/bin/bash -ex
2
3
+if [ -n "$TRAVIS_TAG" ];
4
+then
5
+ sed -i "s/^version \{0,1\}=.*/version = \"${TRAVIS_TAG:1}\"/" Cargo.toml
6
+ git config --local user.name "Travis CI"
7
+ git config --local user.email "[email protected]"
+ git add Cargo.toml
+ git commit --allow-empty -m "Bump version to $TRAVIS_TAG [skip ci]"
+ git push https://${GITHUB_TOKEN}@github.com/maur1th/task_diff.git HEAD:master
+fi
0 commit comments