Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Commit 87c9133

Browse files
committed
extract version from cargo instead of from travis env
1 parent 7ee8d17 commit 87c9133

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ before_deploy:
3333
deploy:
3434
provider: releases
3535
api_key: $GITHUB_TOKEN
36-
file: android_localization-$TRAVIS_TAG-$TARGET.tar.gz
36+
file_glob: true
37+
file: android_localization-*-$TARGET.tar.gz
3738
skip_cleanup: true
3839
draft: true
3940
overwrite: false

ci/before_deploy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ cargo build --all --release --target $TARGET --verbose
77
cp target/$TARGET/release/android_localization_cli$EXE_SUFFIX android_localization$EXE_SUFFIX
88

99
# Zip up the executable with name that resembles android_localization-0.1.4-x86_64-unknown-linux-gnu
10-
tar czf android_localization-$TRAVIS_TAG-$TARGET.tar.gz android_localization$EXE_SUFFIX
10+
current_version=`grep "version" cli/Cargo.toml | sed "s/version = //g" | sed "s/'//g"`
11+
echo "using $current_version as version from cli/Cargo.toml"
12+
tar czf android_localization-$current_version-$TARGET.tar.gz android_localization$EXE_SUFFIX

0 commit comments

Comments
 (0)