update for latest GHS #133
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: "Build and publish release" | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "v*" | |
- "!v*-*" | |
jobs: | |
create_release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "17" | |
distribution: "adopt" | |
- name: Build with default Maven | |
run: mvn --batch-mode --update-snapshots package | |
- name: Build with postgresql Maven | |
run: mvn --batch-mode --update-snapshots package -P db-postgresql | |
- name: Build with mariadb Maven | |
run: mvn --batch-mode --update-snapshots package -P db-mariadb | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
files: | | |
./target/ghs-server-${{github.ref_name}}.jar | |
./target/ghs-server-${{github.ref_name}}-postgresql.jar | |
./target/ghs-server-${{github.ref_name}}-mariadb.jar |