From d7743eb68d7f02c57ad6673f6eeec844be16f402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20G=C3=A4rtner?= Date: Thu, 28 Mar 2024 09:49:15 +0100 Subject: [PATCH] add deploy action --- .github/workflows/deploy-maven-central.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/deploy-maven-central.yml diff --git a/.github/workflows/deploy-maven-central.yml b/.github/workflows/deploy-maven-central.yml new file mode 100644 index 0000000..bae5ae2 --- /dev/null +++ b/.github/workflows/deploy-maven-central.yml @@ -0,0 +1,22 @@ +name: Publish package to the Maven Central Repository +on: + release: + types: [created] +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: 'temurin' + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + - name: Publish package + run: mvn --batch-mode deploy + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} \ No newline at end of file