Skip to content

Commit

Permalink
Update maven-publish.yml
Browse files Browse the repository at this point in the history
simplify run commands
  • Loading branch information
dsgrieve committed Jul 29, 2021
1 parent a1a06c5 commit 1503b68
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,28 @@ jobs:
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

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

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

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

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

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

0 comments on commit 1503b68

Please sign in to comment.