Skip to content

Commit 24d6e32

Browse files
committed
Checks for tags when building to build release
1 parent 0102abe commit 24d6e32

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

appveyor.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,22 @@ branches:
77
skip_branch_with_pr: true
88
image: Visual Studio 2017
99
install:
10-
- ps: ./gradlew clean -PjenkinsBuild --no-daemon
10+
- ps: >-
11+
If (Test-Path Env:APPVEYOR_REPO_TAG_NAME) {
12+
./gradlew clean -PjenkinsBuild -PreleaseType=OFFICIAL --continue --no-daemon
13+
} Else {
14+
./gradlew clean -PjenkinsBuild --continue --no-daemon
15+
}
16+
1117
cache: C:\Users\appveyor\.gradle
1218
build_script:
13-
- ps: ./gradlew build -PjenkinsBuild --continue --no-daemon
19+
- ps: >-
20+
If (Test-Path Env:APPVEYOR_REPO_TAG_NAME) {
21+
./gradlew build -PjenkinsBuild -PreleaseType=OFFICIAL --continue --no-daemon
22+
} Else {
23+
./gradlew build -PjenkinsBuild --continue --no-daemon
24+
}
25+
1426
test: off
1527
artifacts:
1628
- path: '**/libs/*'

0 commit comments

Comments
 (0)