-
Notifications
You must be signed in to change notification settings - Fork 2.8k
36 lines (36 loc) · 1.01 KB
/
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
35
36
name: release
run-name: auto release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest ]
java: [ 8 ]
runs-on: ${{ matrix.os }}
steps:
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: zulu
- name: Package with Maven
run: mvn clean package -Dmaven.test.skip=true
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
append_body: true
files: |
tcc-transaction-distribution/target/tcc-transaction-dashboard.zip
tcc-transaction-distribution/target/tcc-transaction-server.zip