Skip to content

1.3.1

1.3.1 #10

Workflow file for this run

# 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: Make release
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- id: install-secret-key
name: Install gpg secret key
run: |
cat <(echo -e "${{ secrets.ORG_GPG_PRIVATE_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- uses: actions/checkout@v3
- name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-passphrase: PASSPHRASE
- name: Make a release
run: mvn -Pdeploy -Pproduction --no-transfer-progress --batch-mode clean deploy
env:
MAVEN_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }}
PASSPHRASE: ${{ secrets.ORG_GPG_PASSPHRASE }}
#java 17 build
- uses: actions/checkout@v3
- name: Set up Java 17 for publishing to Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-passphrase: PASSPHRASE
- name: Build with java 17
run: |
mvn -pl integrations/spring-boot3 clean install -am -B
mvn -pl integrations/spring-boot3-console clean install -am -B
mvn -P production -pl storage/rest/client-app clean install -am -B
mvn -P production -pl storage/rest/client-app-standalone-assembly clean install -am -B
mvn -P production -pl storage/rest/service-springboot clean install -am -B
- name: Deploy module build with java 17
run: |
mvn -Pdeploy -pl integrations/spring-boot3 deploy
mvn -Pdeploy -pl integrations/spring-boot3-console deploy
mvn -Pdeploy -Pproduction -pl storage/rest/client-app deploy
mvn -Pdeploy -Pproduction -pl storage/rest/client-app-standalone-assembly deploy
mvn -Pdeploy -Pproduction -pl storage/rest/service-springboot deploy
env:
MAVEN_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }}
PASSPHRASE: ${{ secrets.ORG_GPG_PASSPHRASE }}