1.3.0 #21
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
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created | |
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path | |
name: Maven Default Publish | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout code for Tag | |
with: | |
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: 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 }} |