Skip to content

Commit 80125bf

Browse files
Merge pull request #6 from brianolsen87/dev
Test with Travis build with releases
2 parents f1e8e44 + 775f760 commit 80125bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ language: java
33
install: true
44
sudo: false
55
script: mvn clean install -Dmaven.javadoc.skip=true -DskipTests=false -Dgpg.skip=true
6+
env:
7+
- POM_VERSION=$(mvn -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec -q)
68
before_deploy:
79
# Set up git user name and tag this commit
810
- git config --local user.name "Brian Olsen"
911
- git config --local user.email "[email protected]"
10-
- git tag "$(mvn -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec -q)"
12+
- git tag "$POM_VERSION"
1113
deploy:
1214
provider: releases
1315
api_key: "$Github_Oath_Token"
16+
name: "$POM_VERSION"
17+
body: "<dependency>\n <groupId>com.github.brianolsen87</groupId>\n <artifactId>text-instructions</artifactId>\n <version>$POM_VERSION</version>\n</dependency>"
1418
skip_cleanup: true
1519
on:
1620
branch: master

0 commit comments

Comments
 (0)