We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 632b5f9 commit 5232eb9Copy full SHA for 5232eb9
.github/workflows/cd_maven.yml
@@ -0,0 +1,23 @@
1
+name: Publish package to the Maven Central Repository
2
+on:
3
+ push:
4
+ tags:
5
+ - 'v*'
6
+jobs:
7
+ publish:
8
+ runs-on: ubuntu-latest
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: '17'
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 clean source:jar javadoc:jar deploy
21
+ env:
22
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
23
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
0 commit comments