-
Notifications
You must be signed in to change notification settings - Fork 15
34 lines (32 loc) · 1018 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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