Skip to content

Commit

Permalink
Update maven-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Befrish authored Oct 9, 2020
1 parent d941afd commit 3312a3f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
with: # default settings.xml with server-id: github; environment variables: username=$GITHUB_ACTOR, password=$GITHUB_TOKEN, and gpg-passphrase=null
java-version: 1.8

- name: Cache local Maven repository
Expand All @@ -35,7 +35,7 @@ jobs:
${{ runner.os }}-maven-
- name: Set release version with Maven
run: mvn -B -V mvn org.codehaus.mojo:versions-maven-plugin:2.5:set -DnewVersion=${{ github.event.inputs.release-version }} org.codehaus.mojo:versions-maven-plugin:2.5:commit
run: mvn -B -V org.codehaus.mojo:versions-maven-plugin:2.5:set -DnewVersion=${{ github.event.inputs.release-version }} org.codehaus.mojo:versions-maven-plugin:2.5:commit

- name: Build with Maven
run: mvn -B -V package --file pom.xml -DskipTests -DskipITs
Expand Down Expand Up @@ -77,7 +77,6 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
settings-path: ${{ github.workspace }} # location for the settings.xml file
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml

- name: Publish to GitHub Packages Apache Maven
Expand All @@ -89,7 +88,6 @@ jobs:
uses: actions/setup-java@v1
with: # running setup-java again overwrites the settings.xml
java-version: 1.8
settings-path: ${{ github.workspace }} # location for the settings.xml file
server-id: repsy # Value of the distributionManagement/repository/id field of the pom.xml
server-username: REPSY_USERNAME # env variable for username in deploy
server-password: REPSY_PASSWORD # env variable for password in deploy
Expand All @@ -102,7 +100,7 @@ jobs:


- name: Set development version with Maven
run: mvn -B -V mvn org.codehaus.mojo:versions-maven-plugin:2.5:set -DnewVersion=${{ github.event.inputs.development-version }} org.codehaus.mojo:versions-maven-plugin:2.5:commit
run: mvn -B -V org.codehaus.mojo:versions-maven-plugin:2.5:set -DnewVersion=${{ github.event.inputs.development-version }} org.codehaus.mojo:versions-maven-plugin:2.5:commit

- name: Push update of development version
uses: actions-x/commit@v2
Expand Down

0 comments on commit 3312a3f

Please sign in to comment.