aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2023-10-27 21:52:11 -0700
committerPinapelz <yukais@pinapelz.com>2023-10-27 21:52:11 -0700
commitf89590eeaa618233403555e2a99cb937911ee758 (patch)
tree79eb1c950d6d98d9238b1314d8effa8bc4c0fa91 /.github
parent2ccf0233fa58596f548844788810088275d00fce (diff)
update pom.xml
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/publish.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 3d5fe17..19bdeac 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -1,4 +1,4 @@
-name: Publish package to GitHub Packages
+name: Publish package to the Maven Central Repository
on:
workflow_dispatch:
release:
@@ -6,16 +6,18 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
- permissions:
- contents: read
- packages: write
steps:
- uses: actions/checkout@v4
- - uses: actions/setup-java@v3
+ - name: Set up Maven Central Repository
+ uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
+ server-id: ossrh
+ server-username: MAVEN_USERNAME
+ server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode deploy
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage