mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-20 06:06:02 +00:00
updated travis-to-bintray upload config
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"package": {
|
||||||
|
"name": "buildkit",
|
||||||
|
"repo": "cryptomator",
|
||||||
|
"subject": "cryptomator"
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"name": "$TRAVIS_TAG",
|
||||||
|
"desc": "Cryptomator version $TRAVIS_TAG",
|
||||||
|
"released": "$TODAY",
|
||||||
|
"vcs_tag": "$TRAVIS_TAG",
|
||||||
|
"gpgSign": true
|
||||||
|
},
|
||||||
|
"files":
|
||||||
|
[
|
||||||
|
{"includePattern": "main/buildkit/target/(buildkit-[a-z]+\\.deb)", "uploadPattern": "/$1"}
|
||||||
|
],
|
||||||
|
"publish": true
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"package": {
|
||||||
|
"name": "buildkit",
|
||||||
|
"repo": "cryptomator",
|
||||||
|
"subject": "cryptomator"
|
||||||
|
},
|
||||||
|
"version": {
|
||||||
|
"name": "snapshot"
|
||||||
|
},
|
||||||
|
"files":
|
||||||
|
[
|
||||||
|
{"includePattern": "main/buildkit/target/(buildkit-[a-z]+\\.deb)", "uploadPattern": "/$1"}
|
||||||
|
],
|
||||||
|
"publish": true
|
||||||
|
}
|
||||||
+11
-75
@@ -34,85 +34,21 @@ before_deploy:
|
|||||||
mvn -fmain/pom.xml org.codehaus.mojo:versions-maven-plugin:set -DnewVersion=SNAPSHOT-$(echo $TRAVIS_COMMIT | head -c7)
|
mvn -fmain/pom.xml org.codehaus.mojo:versions-maven-plugin:set -DnewVersion=SNAPSHOT-$(echo $TRAVIS_COMMIT | head -c7)
|
||||||
fi
|
fi
|
||||||
- mvn -fmain/pom.xml clean package -Prelease -DskipTests
|
- mvn -fmain/pom.xml clean package -Prelease -DskipTests
|
||||||
|
- TODAY=`date +'%Y-%m-%d` envsubst '$TRAVIS_TAG $TODAY' < .travis-deploy-release.tmpl.json > .travis-deploy-release.json
|
||||||
|
- cat .travis-deploy-release.json
|
||||||
deploy:
|
deploy:
|
||||||
- provider: script # SNAPSHOTS
|
- provider: bintray # SNAPSHOTS
|
||||||
|
file: .travis-deploy-snapshot.json
|
||||||
|
user: cryptobot
|
||||||
|
key: $BINTRAY_API_KEY
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
script: >-
|
|
||||||
curl -T main/buildkit/target/buildkit-linux.zip
|
|
||||||
-u cryptobot:${BINTRAY_API_KEY}
|
|
||||||
-H "X-Bintray-Package:buildkit"
|
|
||||||
-H "X-Bintray-Version:continuous"
|
|
||||||
-H "X-Bintray-Override:1"
|
|
||||||
-H "X-Bintray-Publish:1"
|
|
||||||
https://api.bintray.com/content/cryptomator/cryptomator/buildkit-linux-continuous.zip
|
|
||||||
on:
|
on:
|
||||||
repo: cryptomator/cryptomator
|
repo: cryptomator/cryptomator
|
||||||
branch: develop
|
- provider: bintray # RELEASES
|
||||||
condition: $TRAVIS_TAG = ''
|
file: .travis-deploy-release.json
|
||||||
- provider: script
|
user: cryptobot
|
||||||
|
key: $BINTRAY_API_KEY
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
script: >-
|
|
||||||
curl -T main/buildkit/target/buildkit-mac.zip
|
|
||||||
-u cryptobot:${BINTRAY_API_KEY}
|
|
||||||
-H "X-Bintray-Package:buildkit"
|
|
||||||
-H "X-Bintray-Version:continuous"
|
|
||||||
-H "X-Bintray-Override:1"
|
|
||||||
-H "X-Bintray-Publish:1"
|
|
||||||
https://api.bintray.com/content/cryptomator/cryptomator/buildkit-mac-continuous.zip
|
|
||||||
on:
|
on:
|
||||||
repo: cryptomator/cryptomator
|
repo: cryptomator/cryptomator
|
||||||
branch: develop
|
tags: true
|
||||||
condition: $TRAVIS_TAG = ''
|
|
||||||
- provider: script
|
|
||||||
skip_cleanup: true
|
|
||||||
script: >-
|
|
||||||
curl -T main/buildkit/target/buildkit-win.zip
|
|
||||||
-u cryptobot:${BINTRAY_API_KEY}
|
|
||||||
-H "X-Bintray-Package:buildkit"
|
|
||||||
-H "X-Bintray-Version:continuous"
|
|
||||||
-H "X-Bintray-Override:1"
|
|
||||||
-H "X-Bintray-Publish:1"
|
|
||||||
https://api.bintray.com/content/cryptomator/cryptomator/buildkit-win-continuous.zip
|
|
||||||
on:
|
|
||||||
repo: cryptomator/cryptomator
|
|
||||||
branch: develop
|
|
||||||
condition: $TRAVIS_TAG = ''
|
|
||||||
- provider: script # RELEASE
|
|
||||||
skip_cleanup: true
|
|
||||||
script: >-
|
|
||||||
curl -T main/buildkit/target/buildkit-linux.zip
|
|
||||||
-u cryptobot:${BINTRAY_API_KEY}
|
|
||||||
-H "X-Bintray-Package:buildkit"
|
|
||||||
-H "X-Bintray-Version:${TRAVIS_TAG}"
|
|
||||||
-H "X-Bintray-Override:1"
|
|
||||||
-H "X-Bintray-Publish:1"
|
|
||||||
https://api.bintray.com/content/cryptomator/cryptomator/buildkit-linux-${TRAVIS_TAG}.zip
|
|
||||||
on:
|
|
||||||
repo: cryptomator/cryptomator
|
|
||||||
tags: true
|
|
||||||
- provider: script
|
|
||||||
skip_cleanup: true
|
|
||||||
script: >-
|
|
||||||
curl -T main/buildkit/target/buildkit-mac.zip
|
|
||||||
-u cryptobot:${BINTRAY_API_KEY}
|
|
||||||
-H "X-Bintray-Package:buildkit"
|
|
||||||
-H "X-Bintray-Version:${TRAVIS_TAG}"
|
|
||||||
-H "X-Bintray-Override:1"
|
|
||||||
-H "X-Bintray-Publish:1"
|
|
||||||
https://api.bintray.com/content/cryptomator/cryptomator/buildkit-mac-${TRAVIS_TAG}.zip
|
|
||||||
on:
|
|
||||||
repo: cryptomator/cryptomator
|
|
||||||
tags: true
|
|
||||||
- provider: script
|
|
||||||
skip_cleanup: true
|
|
||||||
script: >-
|
|
||||||
curl -T main/buildkit/target/buildkit-win.zip
|
|
||||||
-u cryptobot:${BINTRAY_API_KEY}
|
|
||||||
-H "X-Bintray-Package:buildkit"
|
|
||||||
-H "X-Bintray-Version:${TRAVIS_TAG}"
|
|
||||||
-H "X-Bintray-Override:1"
|
|
||||||
-H "X-Bintray-Publish:1"
|
|
||||||
https://api.bintray.com/content/cryptomator/cryptomator/buildkit-win-${TRAVIS_TAG}.zip
|
|
||||||
on:
|
|
||||||
repo: cryptomator/cryptomator
|
|
||||||
tags: true
|
|
||||||
Reference in New Issue
Block a user