Skip to content

Commit

Permalink
#45 - Added Maven dependency tree submission job (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-edstrom authored Apr 15, 2023
1 parent 469fae0 commit 68660d7
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
default: '0.0.0'

jobs:

waitOld:
name: Wait For Older Runs To Complete
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,6 +57,26 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

dependency-tree:
name: Maven Dependency Tree
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: zulu
java-version: 11
cache: maven
- name: Restore Local Maven Cache
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{runner.os}}-m2
- name: Submit Dependency Snapshot
uses: advanced-security/maven-dependency-submission-action@v3

getVersion:
name: Get package version
runs-on: ubuntu-latest
Expand Down Expand Up @@ -261,7 +280,7 @@ jobs:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Deploy Release v${{ needs.getVersion.outputs.buildNumber }} to OSSRH
run: mvn -Drevision=${{ needs.getVersion.outputs.buildNumber }} deploy
run: mvn -B -e -Drevision=${{ needs.getVersion.outputs.buildNumber }} deploy
- name: Publish GitHub release v${{ needs.getVersion.outputs.buildNumber }}
uses: actions/github-script@v6
with:
Expand Down

0 comments on commit 68660d7

Please sign in to comment.