-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (24 loc) · 728 Bytes
/
Copy path.travis.yml
File metadata and controls
29 lines (24 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
language: java
jdk: openjdk11
# Do not build tags (otherwise newly tagged releases get rebuilt).
if: tag IS blank
env:
- GIT_COMMIT_SHORT=$(git rev-parse --short HEAD)
before_deploy:
# Name final artifact.
- REPO_NAME=$(basename "$PWD")
- cp target/*-jar-with-dependencies.jar "${REPO_NAME}.jar"
# Set up release tag.
- export TRAVIS_TAG="release-${GIT_COMMIT_SHORT}"
- git tag -f "$TRAVIS_TAG"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
file_glob: true
file: ./*.jar
name: "Commit ${GIT_COMMIT_SHORT}: $(TZ=UTC date +'%B %d, %Y %r')"
# Skip deploys from tags and branches other than the master
on:
branch: master
tags: false