diff --git a/.github/workflows/maven-central-publish.yml b/.github/workflows/maven-central-publish.yml index ac9d8309..5ab051cb 100644 --- a/.github/workflows/maven-central-publish.yml +++ b/.github/workflows/maven-central-publish.yml @@ -22,30 +22,30 @@ jobs: ref: ${{ github.event.release.tag_name }} - name: Echo Tag run: "echo 'CHECKED OUT TAG: ${{ github.event.release.tag_name }}'" - # - name: Set up JDK 21 and maven settings.xml - # uses: actions/setup-java@v4 - # with: - # java-version: '21' - # distribution: 'liberica' - # cache: 'maven' - # server-username: MAVEN_USERNAME - # server-password: MAVEN_PASSWORD - # server-id: central + - name: Set up JDK 21 and maven settings.xml + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'liberica' + cache: 'maven' + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + server-id: central - # - name: Publish package DB2Rest - # run: mvn -Drevision=${{ github.event.release.tag_name }} --no-transfer-progress -B deploy -P release -DskipTests - # # below we use env for passing GPG stuff since the signing type is bouncy castle (bc) - # # set in parent pom's maven-gpg-plugin configuration and doesn't need gpg agent. - # env: - # MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} - # MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} - # MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - # MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_KEY }} + - name: Publish package DB2Rest + run: mvn -Drevision=${{ github.event.release.tag_name }} --no-transfer-progress -B deploy -P release -DskipTests + # below we use env for passing GPG stuff since the signing type is bouncy castle (bc) + # set in parent pom's maven-gpg-plugin configuration and doesn't need gpg agent. + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_KEY }} - # - name: Publish package Oracle9i - # run: mvn -Drevision=${{ github.event.release.tag_name }} --no-transfer-progress -B deploy -P release --file api-rest/pom-oracle9i.xml -DskipTests - # env: - # MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} - # MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} - # MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} - # MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_KEY }} + - name: Publish package Oracle9i + run: mvn -Drevision=${{ github.event.release.tag_name }} --no-transfer-progress -B deploy -P release --file api-rest/pom-oracle9i.xml -DskipTests + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} + MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_KEY }}