-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.35 KB
/
release-build.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Publish Release Build
permissions:
contents: write
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Set up Maven cache
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn clean verify -U -P release-build
- name: Create ZIP archive for migration tool
uses: montudor/action-zip@v1
with:
args: zip -qq -r migration-tool.zip migration
- name: Create ZIP archive for setup scripts
uses: montudor/action-zip@v1
with:
args: zip -qq -r setup-scripts.zip install
- name: Release
id: create_release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref_name }}
generate_release_notes: true
draft: false
prerelease: false
files: |
module-*/target/*.jar
module-core/src/main/resources/application.properties
setup-scripts.zip
migration-tool.zip