2323 - uses : actions/checkout@v2
2424 - name : Set up JDK 1.8
2525 uses : actions/setup-java@v1
26- with :
26+ with : # default settings.xml with server-id: github; environment variables: username=$GITHUB_ACTOR, password=$GITHUB_TOKEN, and gpg-passphrase=null
2727 java-version : 1.8
2828
2929 - name : Cache local Maven repository
3535 ${{ runner.os }}-maven-
3636
3737 - name : Set release version with Maven
38- 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
38+ 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
3939
4040 - name : Build with Maven
4141 run : mvn -B -V package --file pom.xml -DskipTests -DskipITs
7777 uses : actions/setup-java@v1
7878 with :
7979 java-version : 1.8
80- settings-path : ${{ github.workspace }} # location for the settings.xml file
8180 server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
8281
8382 - name : Publish to GitHub Packages Apache Maven
8988 uses : actions/setup-java@v1
9089 with : # running setup-java again overwrites the settings.xml
9190 java-version : 1.8
92- settings-path : ${{ github.workspace }} # location for the settings.xml file
9391 server-id : repsy # Value of the distributionManagement/repository/id field of the pom.xml
9492 server-username : REPSY_USERNAME # env variable for username in deploy
9593 server-password : REPSY_PASSWORD # env variable for password in deploy
@@ -102,7 +100,7 @@ jobs:
102100
103101
104102 - name : Set development version with Maven
105- 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
103+ 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
106104
107105 - name : Push update of development version
108106 uses : actions-x/commit@v2
0 commit comments