Skip to content

Merge pull request #100 from OP-TED/88-problem-generating-html-with-m… #64

Merge pull request #100 from OP-TED/88-problem-generating-html-with-m…

Merge pull request #100 from OP-TED/88-problem-generating-html-with-m… #64

Workflow file for this run

name: Publish package to the Maven Central Repository
on:
push:
branches:
- 'develop'
- 'main'
release:
types: [created]
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Publish to the Maven Central Repository
run: mvn --batch-mode deploy -Dgpg.passphrase='${{ secrets.GPG_PASSPHRASE }}' -Prelease -s .github/workflows/settings.xml
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}