Java-Library/.gitea/workflows/publish.yml
2024-04-17 21:06:43 +01:00

22 lines
539 B
YAML

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 }}