Skip to content

Commit d9fdc4f

Browse files
authored
Github Actions Workflow - Publish packages to the Maven Central Repository.
1 parent 81ef3d5 commit d9fdc4f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish packages to the Maven Central Repository
2+
on:
3+
workflow_dispatch:
4+
release:
5+
types: [created]
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Set up Maven Central Repository
12+
uses: actions/setup-java@v3
13+
with:
14+
java-version: '8.0.352'
15+
distribution: 'temurin'
16+
server-id: ossrh
17+
server-username: MAVEN_USERNAME
18+
server-password: MAVEN_PASSWORD
19+
- name: Publish package
20+
run: mvn --batch-mode deploy
21+
env:
22+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
23+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 commit comments

Comments
 (0)