diff --git a/.github/workflows/maven-central-publish.yml b/.github/workflows/maven-central-publish.yml index a4d51fe1..ac9d8309 100644 --- a/.github/workflows/maven-central-publish.yml +++ b/.github/workflows/maven-central-publish.yml @@ -19,33 +19,33 @@ jobs: - uses: actions/checkout@v4 name: Checkout code for Tag with: - ref: ${{ github.ref }} + ref: ${{ github.event.release.tag_name }} - name: Echo Tag - run: "echo 'CHECKED OUT TAG: ${{ github.ref }}'" - - 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 + 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: Publish package DB2Rest - run: mvn -Drevision=${{ github.ref }} --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.ref }} --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 }}