Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

Commit 77047a3

Browse files
authored
Create test-deploy.yml
1 parent 055e16e commit 77047a3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test-deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test Deployment CI
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish_central: # Publish the code to central
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Set up JDK 8 OSSRH
13+
uses: actions/setup-java@v2
14+
with: # running setup-java again overwrites the settings.xml
15+
distribution: 'temurin'
16+
java-version: '8'
17+
server-id: ossrh
18+
server-username: MAVEN_CENTRAL_USERNAME
19+
server-password: MAVEN_CENTRAL_TOKEN
20+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
21+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
22+
23+
- name: Publish to OSSRH
24+
run: mvn -B deploy -Possrh
25+
env:
26+
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
27+
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
28+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)