зеркало из https://github.com/mozilla/sccache.git
[ci] Move prep deploy into script
This commit is contained in:
Родитель
b81c4740aa
Коммит
9035d2f9f9
|
@ -41,11 +41,7 @@ script:
|
|||
#- if [[ "${DIST_SCCACHE}" = "1" ]]; then RUST_BACKTRACE=1 cargo test --all --verbose --features="all dist-tests ${EXTRA_FEATURES}" test_dist_ -- --test-threads 1; fi
|
||||
|
||||
before_deploy:
|
||||
- name="sccache-$TRAVIS_TAG-$TARGET"
|
||||
- mkdir $name
|
||||
- cp target/$TARGET/release/sccache $name/
|
||||
- cp README.md LICENSE $name/
|
||||
- tar czvf $name.tar.gz $name
|
||||
- "./scripts/prep_deploy.sh"
|
||||
|
||||
deploy:
|
||||
api_key:
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
name="sccache-$TRAVIS_TAG-$TARGET"
|
||||
mkdir $name
|
||||
cp target/$TARGET/release/sccache $name/
|
||||
cp README.md LICENSE $name/
|
||||
tar czvf $name.tar.gz $name
|
||||
chksum=($(shasum -ba 256 $name.tar.gz))
|
||||
echo "$chksum" > $name.tar.gz.sha256
|
Загрузка…
Ссылка в новой задаче