Skip to content

Commit 26a9700

Browse files
committed
Only publish to Maven Central
1 parent 8c884e2 commit 26a9700

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/maven-publish.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Publish
55

66
on:
77
release:
8-
types: [created]
8+
types: [published]
99

1010
jobs:
1111
build:
@@ -15,15 +15,16 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717

18-
- name: Set up GitHub Packages Apache Maven
19-
uses: actions/setup-java@v1
20-
with:
21-
java-version: 16-ea
22-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
23-
- name: Publish to GitHub Packages Apache Maven
24-
run: mvn --batch-mode -X deploy
25-
env:
26-
GITHUB_TOKEN: ${{ github.token }}
18+
# - name: Set up GitHub Packages Apache Maven
19+
# uses: actions/setup-java@v1
20+
# with:
21+
# java-version: 16-ea
22+
# server-id: github
23+
# gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
24+
# - name: Publish to GitHub Packages Apache Maven
25+
# run: mvn --batch-mode -X deploy
26+
# env:
27+
# GITHUB_TOKEN: ${{ github.token }}
2728

2829
- name: Set up Apache Maven Central
2930
uses: actions/setup-java@v1

0 commit comments

Comments
 (0)