diff --git a/.travis.yml b/.travis.yml index 38f5e8f..20abe50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,7 @@ language: go +branches: + except: + - latest go: 1.14 dist: bionic services: @@ -14,7 +17,34 @@ before_script: script: - make all VERSION=${TRAVIS_BRANCH} - ls -al +before_deploy: | + if [ "${TRAVIS_BRANCH}" == "develop" ] && [ "${TRAVIS_TAG}" == "" ]; then + git tag -f latest + git remote add gh https://${TRAVIS_REPO_SLUG%/*}:${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git + git push -f gh latest + git remote remove gh + else + echo Not updating latest tag + fi deploy: + - provider: releases + name: Automated build of develop-branch + api-key: $GH_TOKEN + file: + - yodk-win.zip + - yodk-linux.zip + - yodk-darwin.zip + - vscode-yolol.vsix + skip_cleanup: true + edge: true + overwrite: true + prerelease: true + target_commitish: $TRAVIS_COMMIT + tag_name: latest + body: "Use this release ONLY to test not-yet-released changes from the develop-branch. Use a versioned release (see below) for anything else!!!" + on: + tags: false + branch: develop - provider: releases api-key: $GH_TOKEN file: diff --git a/README.md b/README.md index fe55cae..c3e29f5 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # YODK - YOLOL Development Kit -[![Build Status](https://travis-ci.com/dbaumgarten/yodk.svg?branch=master)](https://travis-ci.com/dbaumgarten/yodk) +[![Build Status](https://app.travis-ci.com/dbaumgarten/yodk.svg?branch=master)](https://app.travis-ci.com/dbaumgarten/yodk) # What is YOLOL? [YOLOL](https://wiki.starbasegame.com/index.php/YOLOL) is the ingame programming language for the upcoming game starbase.