Skip to content

Commit

Permalink
Create github deployment when travis deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
EliuX committed Dec 15, 2018
1 parent c449882 commit aac2b3b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 182 deletions.
21 changes: 13 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,17 @@ before_deploy:
#GPG keys
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
- mvn help:evaluate -N -Dexpression=project.version|grep -v '\['
- export project_version=$(mvn help:evaluate -N -Dexpression=project.version|grep -v '\[')
deploy:
provider: script
#After running make release a release tag is created.
#Then run this script and a release artifact is
#uploaded to the Maven Central
script: make deploy
skip_cleanup: true
on:
tags: true
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file: target/megacmd4j-$project_version.jar
skip_cleanup: true
on:
tags: true
after_deploy:
#After running make release a release tag is created.
#Then run this script and a release artifact is
#uploaded to the Maven Central
- make deploy
169 changes: 0 additions & 169 deletions pom.xml.releaseBackup

This file was deleted.

10 changes: 5 additions & 5 deletions release.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#release configuration
#Sun Nov 04 14:51:43 COT 2018
#Sat Dec 15 13:21:20 COT 2018
project.scm.com.github.eliux\:megacmd4j.connection=scm\:git\:https\://github.com/EliuX/MEGAcmd4J.git
project.dev.com.github.eliux\:megacmd4j=1.1-SNAPSHOT
project.dev.com.github.eliux\:megacmd4j=1.2.3-SNAPSHOT
scm.tagNameFormat=@{project.artifactId}-@{project.version}
scm.tag=megacmd4j-1.0
scm.tag=megacmd4j-1.2.2
pushChanges=true
scm.url=scm\:git\:https\://github.com/EliuX/MEGAcmd4J.git
preparationGoals=clean verify
remoteTagging=true
projectVersionPolicyId=default
scm.commentPrefix=[maven-release-plugin]
project.rel.com.github.eliux\:megacmd4j=1.0
project.scm.com.github.eliux\:megacmd4j.tag=HEAD
project.rel.com.github.eliux\:megacmd4j=1.2.2
project.scm.com.github.eliux\:megacmd4j.tag=megacmd4j-1.0
exec.snapshotReleasePluginAllowed=false
project.scm.com.github.eliux\:megacmd4j.url=https\://github.com/EliuX/MEGAcmd4J
completedPhase=run-preparation-goals

0 comments on commit aac2b3b

Please sign in to comment.