Skip to content

Commit be0ba74

Browse files
committed
add bintray release
1 parent ad9342c commit be0ba74

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ cache:
2020
- $HOME/.gradle/wrapper/
2121

2222
deploy:
23-
# 发布到 GitHub Release
2423
- provider: releases
2524
skip_cleanup: true
2625
file_glob: true
@@ -29,6 +28,11 @@ deploy:
2928
on:
3029
tags: true
3130
branch: version2
31+
- provider: script
32+
script: ./gradlew bintrayUpload
33+
on:
34+
tags: true
35+
branch: master
3236

3337
notifications:
3438
webhooks: https://oapi.dingtalk.com/robot/send?access_token=4b59c5ece57fc88af8fda28cc07573c4caf525aa69afc0cc888ccf3ce6dbe41b

build.gradle.kts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,27 @@ artifacts {
8080
add("archives", fat)
8181
add("archives", sources)
8282
add("archives", doc)
83+
}
84+
85+
bintray {
86+
user = "mechdancer"
87+
key = System.getenv("BintrayToken")
88+
setConfigurations("archives")
89+
val v = version.toString()
90+
val url = "https://github.com/MechDancer/linearalgebra"
91+
pkg.apply {
92+
name = project.name
93+
desc = "linearalgebra kotlin utilities"
94+
repo = "maven"
95+
githubRepo = "MechDancer/linearalgebra"
96+
vcsUrl = "$url.git"
97+
issueTrackerUrl = "$url/issues"
98+
publicDownloadNumbers = true
99+
setLicenses("WTFPL")
100+
version.apply {
101+
name = v
102+
vcsTag = v
103+
websiteUrl = "$url/releases/tag/$v"
104+
}
105+
}
83106
}

0 commit comments

Comments
 (0)