From 02f08279be778e4ba98de900cbd8c86100435019 Mon Sep 17 00:00:00 2001 From: Florian Meier Date: Sun, 5 Apr 2020 14:58:47 +0200 Subject: [PATCH] Allow deployment for master branch only --- .travis.yml | 9 ++++++++- appveyor.yml | 28 ---------------------------- 2 files changed, 8 insertions(+), 29 deletions(-) delete mode 100644 appveyor.yml diff --git a/.travis.yml b/.travis.yml index 5d676718..6c73df1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,10 @@ language: java jdk: - - openjdk8 \ No newline at end of file + - openjdk8 +deploy: + provider: releases + api_key: "$GITHUB_OAUTH_TOKEN" + file: "app/target/app-1.0.0.5-jar-with-dependencies.jar" + skip_cleanup: true + on: + tags: true diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 96bb26c5..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,28 +0,0 @@ -# http://www.appveyor.com/docs/appveyor-yml -# This is the standard AppVeyor project for the SDK -# It builds pulls requests and merges to master to ensure that no tests have broken -# -# This follows the 3-project AppVeyor/Maven pattern established in https://github.com/dblock/log4jna/blob/master/AppVeyorMavenRelease.md - -# https://www.appveyor.com/docs/build-environment/#java -# Use the standard "Visual Studio 2015" image, since that has all the required Maven tools - -environment: - JAVA_HOME: C:\Program Files\Java\jdk1.8.0 - M2: $(USERPROFILE)\.m2 - -install: - # Log versions for debugging - - java -version - - mvn --version - -build_script: - - mvn -B clean install -Djna.nosys=true - -# Maven runs the tests as part of the build, so we don't need to run them again -test: off - -cache: - # Cache Maven and m.2 - - '%MAVEN_HOME%' - - '%M2%' \ No newline at end of file