From 6e90ba9587569e7500f4d4d80b16b53819448a46 Mon Sep 17 00:00:00 2001 From: Etzelia Date: Sat, 5 Sep 2020 17:17:49 +0200 Subject: [PATCH] Drone (#9) Add '.drone.yml' Reviewed-on: https://git.etztech.xyz/Minecraft/PluginAPI/pulls/9 Reviewed-by: ZeroHD --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..dfa044a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,39 @@ +--- +kind: pipeline +name: compliance + +trigger: + event: + - pull_request + +steps: +- name: build + pull: always + image: maven:3-alpine + commands: + - mvn install + +--- +kind: pipeline +name: release + +trigger: + branch: + - master + event: + - push + +steps: +- name: auth + pull: always + image: robertstettner/drone-mvn-auth + settings: + servers: + from_secret: maven_servers + + +- name: deploy + pull: always + image: maven:3-alpine + commands: + - mvn deploy -gs settings.xml \ No newline at end of file