Skip to content

Commit d38a92b

Browse files
committed
ci: added test.yml
1 parent ccfa1a3 commit d38a92b

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test Maven Publish
2+
3+
on:
4+
pull_request:
5+
branches: ['**'] # Also on PRs to any branch
6+
7+
jobs:
8+
test-publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Assemble Resources
14+
run: ./download-libs.sh
15+
16+
- name: Set up JDK 11 and Maven settings + GPG
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'temurin'
20+
java-version: '11'
21+
server-id: central
22+
server-username: ${{ secrets.MAVEN_USERNAME }}
23+
server-password: ${{ secrets.MAVEN_PASSWORD }}
24+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
25+
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
26+
27+
- name: Test Full Deploy (No Publishing)
28+
run: mvn -B clean deploy -Pdeploy -Drevision=1.0.0-test -DskipPublishing=true -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)