2024-04-17 20:07:36 +00:00
|
|
|
name: Publish package to my Maven Repository
|
2024-04-17 20:06:43 +00:00
|
|
|
on:
|
|
|
|
push:
|
2024-04-17 20:07:36 +00:00
|
|
|
branches: ["master"]
|
|
|
|
|
2024-04-17 20:06:43 +00:00
|
|
|
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 }}
|