TKN/.drone.yml
norangebit 299b79a499
All checks were successful
continuous-integration/drone/push Build is passing
Add bintray publishing
2020-06-25 14:03:52 +02:00

32 lines
551 B
YAML

kind: pipeline
name: default
steps:
- name: test
image: java:openjdk-8
volumes:
- name: gradle
path: /root/.gradle
commands:
- ./gradlew check
- name: publish
image: java:openjdk-8
volumes:
- name: gradle
path: /root/.gradle
environment:
BINTRAY_KEY:
from_secret: bintray-key
BINTRAY_USER:
from_secret: bintray-user
commands:
- ./gradlew bintrayUpload -Pbintray.key=$BINTRAY_KEY -Pbintray.user=$BINTRAY_USER
when:
event:
- tag
volumes:
- name: gradle
host:
path: /home/drone/.gradle