Skip to content

Commit 1503b68

Browse files
author
David Grieve
authored
Update maven-publish.yml
simplify run commands
1 parent a1a06c5 commit 1503b68

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/maven-publish.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,28 @@ jobs:
2525
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
2626
settings-path: ${{ github.workspace }} # location for the settings.xml file
2727

28-
- name: Build with Maven
29-
run: cd gctoolkit-gclogs && mvn -B package --file pom.xml && mvn deploy -s $GITHUB_WORKSPACE/settings.xml
28+
- name: Deploy gctoolkit-gclogs
29+
run: mvn -B deploy --file gctoolkit-gclogs/pom.xml --settings $GITHUB_WORKSPACE/settings.xml
3030
env:
3131
GITHUB_TOKEN: ${{ github.token }}
3232

33-
- name: Build rolling
34-
run: cd gctoolkit-gclogs-rolling && mvn -B package --file pom.xml && mvn deploy -s $GITHUB_WORKSPACE/settings.xml
33+
- name: Deploy gctoolkit-gclogs-rolling
34+
run: mvn -B deploy --file gctoolkit-gclogs-rolling/pom.xml --settings $GITHUB_WORKSPACE/settings.xml
3535
env:
3636
GITHUB_TOKEN: ${{ github.token }}
3737

38-
- name: Build with Maven
39-
run: cd gctoolkit-zgc-logs && mvn -B package --file pom.xml && mvn deploy -s $GITHUB_WORKSPACE/settings.xml
38+
- name: Deploy gctoolkit-zgc-logs
39+
run: mvn -B deploy --file gctoolkit-zgc-logs/pom.xml --settings $GITHUB_WORKSPACE/settings.xml
4040
env:
4141
GITHUB_TOKEN: ${{ github.token }}
4242

43-
- name: Build rolling
44-
run: cd gctoolkit-shenandoah-logs && mvn -B package --file pom.xml && mvn deploy -s $GITHUB_WORKSPACE/settings.xml
43+
- name: Deploy gctoolkit-shenandoah-logs
44+
run: mvn -B deploy --file gctoolkit-shenandoah-logs/pom.xml --settings $GITHUB_WORKSPACE/settings.xml
4545
env:
4646
GITHUB_TOKEN: ${{ github.token }}
4747

48-
- name: Publish to GitHub Packages Apache Maven
49-
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
48+
- name: Deploy top-level pom
49+
run: mvn -B deploy --file pom.xml --settings $GITHUB_WORKSPACE/settings.xml
5050
env:
5151
GITHUB_TOKEN: ${{ github.token }}
5252

0 commit comments

Comments
 (0)