We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 887a725 commit e26596bCopy full SHA for e26596b
.github/workflows/publish_mvn_central.yml
@@ -0,0 +1,22 @@
1
+name: Publish package to the Maven Central Repository
2
+on:
3
+ release:
4
+ types: [created]
5
+jobs:
6
+ publish:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v4
10
+ - name: Set up Maven Central Repository
11
+ uses: actions/setup-java@v4
12
+ with:
13
+ java-version: '11'
14
+ distribution: 'temurin'
15
+ server-id: ossrh
16
+ server-username: MAVEN_USERNAME
17
+ server-password: MAVEN_PASSWORD
18
+ - name: Publish package
19
+ run: mvn --batch-mode deploy
20
+ env:
21
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
22
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
0 commit comments