pls work first try
This commit is contained in:
21
.gitea/workflows/publish.yml
Normal file
21
.gitea/workflows/publish.yml
Normal file
@ -0,0 +1,21 @@
|
||||
name: Publish package to the Maven Central Repository
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
-
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Maven Central Repository
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'adopt'
|
||||
- name: Publish package
|
||||
run: mvn --batch-mode deploy
|
||||
env:
|
||||
MAVEN_USERNAME: ${{ secrets.REPO_USERNAME }}
|
||||
MAVEN_PASSWORD: ${{ secrets.REPO_PASSWORD }}
|
Reference in New Issue
Block a user