File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test Maven Publish
2+
3+ on :
4+ push :
5+ branches : ['**'] # Triggers on push to ANY branch
6+ pull_request :
7+ branches : ['**'] # Also on PRs to any branch
8+
9+ jobs :
10+ test-publish :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+
15+ - name : Assemble Resources
16+ run : ./download-libs.sh
17+
18+ - name : Set up JDK 11 and Maven settings + GPG
19+ uses : actions/setup-java@v4
20+ with :
21+ distribution : ' temurin'
22+ java-version : ' 11'
23+ server-id : central
24+ server-username : ${{ secrets.MAVEN_USERNAME }}
25+ server-password : ${{ secrets.MAVEN_PASSWORD }}
26+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
27+ gpg-passphrase : ${{ secrets.GPG_PASSPHRASE }}
28+
29+ - name : Test Build and Package
30+ run : mvn -B -e -X clean package -Pdeploy -Drevision=1.0.0-test
You can’t perform that action at this time.
0 commit comments