Skip to content

Merge pull request #116 from Umutayb/ElementAcquisition-logic-update #107

Merge pull request #116 from Umutayb/ElementAcquisition-logic-update

Merge pull request #116 from Umutayb/ElementAcquisition-logic-update #107

Workflow file for this run

name: Release & Push New Version to Maven Central
on:
push:
tags:
- '*'
jobs:
maven-central-deploy:
runs-on: ubuntu-latest
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: 19
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Start Unit Test Website
run: |
docker-compose up --build -d
- name: Build, Test & Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "${{ github.workspace }}/target/*.jar"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to the Maven Central Repository
run: |
mvn \
--no-transfer-progress \
--batch-mode \
deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}