Skip to content

Commit a66d75e

Browse files
authored
Update maven-publish.yml
1 parent 40c556a commit a66d75e

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
name: Publish package to the Maven Central Repository and GitHub Packages
1+
name: Publish package to the Maven Central Repository
22
on:
33
release:
44
types: [created]
55
jobs:
66
publish:
7-
runs-on: ubuntu-latest
8-
permissions:
9-
contents: read
10-
packages: write
7+
runs-on: ubuntu-latest
118
steps:
129
- uses: actions/checkout@v3
13-
- name: Set up Java for publishing to Maven Central Repository
10+
- name: Set up Maven Central Repository
1411
uses: actions/setup-java@v3
1512
with:
1613
java-version: '11'
1714
distribution: 'adopt'
1815
server-id: ossrh
1916
server-username: MAVEN_USERNAME
2017
server-password: MAVEN_PASSWORD
21-
- name: Publish to the Maven Central Repository
18+
- name: Publish package
2219
run: mvn --batch-mode deploy
2320
env:
2421
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}

0 commit comments

Comments
 (0)