Skip to content

Commit 2dbbd00

Browse files
committed
ci: add test workflow for maven publish setup
1 parent 88f48c0 commit 2dbbd00

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)