Skip to content

Commit

Permalink
Merge pull request #792 from thadguidry/fix-publishing
Browse files Browse the repository at this point in the history
test publishing workflow
  • Loading branch information
thadguidry authored Nov 12, 2024
2 parents 6fda829 + 8ef4e44 commit a74f6ca
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/maven-central-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit a74f6ca

Please sign in to comment.