aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/publish.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/publish.yml')
-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