23
23
- uses : actions/checkout@v2
24
24
- name : Set up JDK 1.8
25
25
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
27
27
java-version : 1.8
28
28
29
29
- name : Cache local Maven repository
35
35
${{ runner.os }}-maven-
36
36
37
37
- 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
39
39
40
40
- name : Build with Maven
41
41
run : mvn -B -V package --file pom.xml -DskipTests -DskipITs
77
77
uses : actions/setup-java@v1
78
78
with :
79
79
java-version : 1.8
80
- settings-path : ${{ github.workspace }} # location for the settings.xml file
81
80
server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
82
81
83
82
- name : Publish to GitHub Packages Apache Maven
89
88
uses : actions/setup-java@v1
90
89
with : # running setup-java again overwrites the settings.xml
91
90
java-version : 1.8
92
- settings-path : ${{ github.workspace }} # location for the settings.xml file
93
91
server-id : repsy # Value of the distributionManagement/repository/id field of the pom.xml
94
92
server-username : REPSY_USERNAME # env variable for username in deploy
95
93
server-password : REPSY_PASSWORD # env variable for password in deploy
@@ -102,7 +100,7 @@ jobs:
102
100
103
101
104
102
- 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
106
104
107
105
- name : Push update of development version
108
106
uses : actions-x/commit@v2
0 commit comments