Skip to content

Commit

Permalink
build: bintrayPublish is unreliable
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydenyer committed Sep 21, 2019
1 parent 4a595a7 commit 9570d2c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ build-snapshot:
script:
- ./gradlew spotlessCheck build -x test
artifacts:
untracked: false
expire_in: 30 days
paths:
- scripts/**
- scripts/
- build/libs/
only:
refs:
Expand All @@ -44,6 +42,10 @@ build-version:
stage: build
script:
- ./gradlew spotlessCheck build -x test
artifacts:
paths:
- scripts/
- build/libs/
only:
refs:
- /^release\/(\d*).(\d*).(\d*)/
Expand All @@ -52,6 +54,7 @@ release-version:
variables:
OSSRH_REPO_URL: $RELEASE_OSSRH_REPO_URL
stage: release
allow_failure: true
script:
- ./gradlew -Pversion=${CI_COMMIT_REF_NAME//release\/} bintrayUpload bintrayPublish -x build
only:
Expand Down

0 comments on commit 9570d2c

Please sign in to comment.