Merge remote-tracking branch 'origin/release' #12
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
name: Application Release Automation | |
on: | |
push: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
build: | |
name: Create release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 # Shallow clones should be disabled for a better relevancy of analysis | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: maven | |
- name: Build package jwt-generator with Maven | |
working-directory: ./jwt-generator | |
run: mvn --batch-mode --update-snapshots package | |
- name: Build package pdf-generator with Maven | |
working-directory: ./pdf-generator | |
run: mvn --batch-mode --update-snapshots package | |
- name: Build package gtw-certifier with Maven | |
working-directory: ./gtw-certifier | |
run: mvn --batch-mode --update-snapshots package | |
- name: Staging packages and source-code | |
run: mkdir staging && cp {jwt-generator,pdf-generator,gtw-certifier}/target/*.jar staging | |
- name: Create release by ncipollo | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "staging/*.jar" | |
tag: ${{ github.ref_name }} | |
commit: "main" | |
allowUpdates: true |