Skip to content

Commit

Permalink
Update versions in pom.xml for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
takahi-i committed Oct 6, 2019
1 parent 62eac73 commit 8804377
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@

pipeline:
- name: Set Version
command: mvn versions:set -DnewVersion=$REDPEN_VERSION
- name: Add Files to the Next Changes
command: git add pom.xml; git add **/*.xml
- name: Commit Version Changes
command: git commit -m "Set version in pom.xml to $REDPEN_VERSION"
- name: Delopy to Sonatype
command: mvn clean deploy -DperformRelease --settings ~/.m2/settings.xml
- name: Create Release Tag
command: git tag -a redpen-$REDPEN_VERSION -m "RedPen release $REDPEN_VERSION"
- name: Flush Next Release Version Number
command: echo $REDPEN_VERSION | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d-SNAPSHOT", length($NF), ($NF+1)%(10^length($NF))); print}'
- name: Echo Next Version
Expand Down

0 comments on commit 8804377

Please sign in to comment.