-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.16 KB
/
deploy.yaml
File metadata and controls
43 lines (37 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Publish package to the Maven Central Repository and GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
# - name: Set up Java for OSSRH
# uses: actions/setup-java@v4
# with:
# java-version: '17'
# distribution: 'temurin'
# server-id: ossrh
# server-username: MAVEN_USERNAME
# server-password: MAVEN_PASSWORD
# - name: Deploy to OSSRH (Maven Central)
# run: mvn --batch-mode deploy -Possrh
# env:
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- name: Set up Java for GitHub Packages
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: github
server-username: GITHUB_ACTOR
server-password: GITHUB_TOKEN
- name: Deploy to GitHub Packages
run: mvn --batch-mode deploy -Pgithub
env:
GITHUB_TOKEN: ${{ secrets.JSONBIN_GITHUB_TOKEN }}