Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to the Maven Central/Rife2 | |
on: | |
workflow_dispatch: | |
release: | |
types: [released] | |
jobs: | |
build-bld-project: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Download dependencies | |
run: ./bld download | |
- name: Import key | |
run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import | |
- name: Publish | |
run: >- | |
./bld compile test publish | |
-DtestsBadgeUrl=https://rife2.com/tests-badge/update/com.uwyn.rife2/rife2-renderers | |
-DtestsBadgeApiKey=${{ secrets.TESTS_BADGE_API_KEY }} | |
-Drife2Username=${{ secrets.RIFE2_USERNAME }} | |
-Drife2Password=${{ secrets.RIFE2_PASSWORD }} | |
-DsonatypeUser=${{ secrets.SONATYPE_USER }} | |
-DsonatypePassword=${{ secrets.SONATYPE_PASSWORD }} | |
-DsignKey=${{ secrets.SIGN_KEY }} | |
-DsignPassphrase=${{ secrets.SIGN_PASSPHRASE }} | |
- name: Delete GnuPG data | |
run: rm -rfv $HOME/.gnupg |