Skip to content

Commit b15d178

Browse files
committed
Fixed mvn command
1 parent 4efcb5b commit b15d178

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/maven.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,27 +111,27 @@ jobs:
111111
- name: Main push to Maven
112112
if: github.ref == 'refs/heads/master'
113113
run: >-
114-
mvn --batch-mode deploy:deploy-file \
115-
-DgroupId=com.octopus \
116-
-DartifactId=randomquotes \
117-
-Dversion=0.1.${{ github.run_number }} \
118-
-Dpackaging=jar \
119-
-Dfile=target/app.jar \
120-
-DrepositoryId=github \
114+
mvn --batch-mode deploy:deploy-file
115+
-DgroupId=com.octopus
116+
-DartifactId=randomquotes
117+
-Dversion=0.1.${{ github.run_number }}
118+
-Dpackaging=jar
119+
-Dfile=target/app.jar
120+
-DrepositoryId=github
121121
-Durl=https://maven.pkg.github.com/OctopusSamples/RandomQuotes-Java
122122
env:
123123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124124

125125
- name: Branch push to Maven
126126
if: github.ref != 'refs/heads/master'
127127
run: >-
128-
mvn --batch-mode deploy:deploy-file \
129-
-DgroupId=com.octopus \
130-
-DartifactId=randomquotes \
131-
-Dversion=0.1.${{ github.run_number }}-${BRANCH_NAME} \
132-
-Dpackaging=jar \
133-
-Dfile=target/app.jar \
134-
-DrepositoryId=github \
128+
mvn --batch-mode deploy:deploy-file
129+
-DgroupId=com.octopus
130+
-DartifactId=randomquotes
131+
-Dversion=0.1.${{ github.run_number }}-${BRANCH_NAME}
132+
-Dpackaging=jar
133+
-Dfile=target/app.jar
134+
-DrepositoryId=github
135135
-Durl=https://maven.pkg.github.com/OctopusSamples/RandomQuotes-Java
136136
env:
137137
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)