Skip to content

Commit 468476b

Browse files
committed
Update .travis.yml
1 parent c39a712 commit 468476b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,30 @@ deploy:
1616
file_glob: true
1717
file: build/distributions/JsonToKotlinClass*.zip
1818
skip_cleanup: true
19-
pre: "$TRAVIS_TAG =~ (eap|EAP)"
20-
prerelease: pre
19+
prerelease: false
2120
release_notes_file: "./githubReleaseNote.md"
2221
on:
2322
tags: true
2423
repo: wuseal/JsonToKotlinClass
25-
- provider: script
26-
script: "./gradlew publishPlugin -Dchannels=eap"
24+
condition: "$TRAVIS_TAG =~ ^[0-9]+\\.[0-9]+\\.[0-9]+$"
25+
- provider: releases
26+
api_key: $GH_TOKEN
27+
file_glob: true
28+
file: build/distributions/JsonToKotlinClass*.zip
2729
skip_cleanup: true
30+
prerelease: true
31+
release_notes_file: "./githubReleaseNote.md"
2832
on:
2933
tags: true
3034
repo: wuseal/JsonToKotlinClass
3135
condition: "$TRAVIS_TAG =~ (eap|EAP)"
3236
- provider: script
33-
script: "./gradlew publishPlugin -Dchannels=alpha"
37+
script: "./gradlew publishPlugin -Dchannels=eap"
3438
skip_cleanup: true
3539
on:
3640
tags: true
3741
repo: wuseal/JsonToKotlinClass
38-
condition: "$TRAVIS_TAG =~ (alpha|Alpha)"
42+
condition: "$TRAVIS_TAG =~ (eap|EAP)"
3943
- provider: script
4044
script: "./gradlew publishPlugin"
4145
skip_cleanup: true

0 commit comments

Comments
 (0)