You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# For more information see: https://docs.github.com/en/actions/learn-github-actions or https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
2
+
3
+
name: Deployment workflow
4
+
5
+
on:
6
+
release:
7
+
types: [published]
8
+
9
+
jobs:
10
+
publish:
11
+
runs-on: ubuntu-latest
12
+
permissions:
13
+
contents: read
14
+
packages: write
15
+
steps:
16
+
- uses: actions/checkout@v4
17
+
- name: Set up Java for publishing to Maven Central Repository
18
+
uses: actions/setup-java@v3
19
+
with:
20
+
# Use lowest supported LTS Java version
21
+
java-version: '8'
22
+
distribution: 'temurin'
23
+
server-id: ossrh
24
+
server-username: MAVEN_USERNAME
25
+
server-password: MAVEN_PASSWORD
26
+
- name: Publish to the Maven Central Repository
27
+
run: mvn --batch-mode deploy
28
+
env:
29
+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
30
+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
31
+
# - name: Set up Java for publishing to GitHub Packages
0 commit comments