From f88e3c0e33cc3dabf943be6ebfd5506d8b15bf41 Mon Sep 17 00:00:00 2001 From: Zuhayr Elahi Date: Thu, 21 Nov 2019 18:42:25 -0800 Subject: [PATCH] Attempt to fix OpenDiablo2 deploy to master (#215) * Remove on tag: true release * Add configuration to release on master * Add before_deploy step to tag build before release --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6f3d859d..169e153b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,9 @@ git: depth: 1 notifications: email: false +before_deploy: + - export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)} + - git tag $TRAVIS_TAG deploy: provider: releases api_key: @@ -39,4 +42,4 @@ deploy: name: "OpenDiablo Unstable (Build $TRAVIS_BUILD_NUMBER)" prerelease: true on: - tags: true + branch: master