forked from DJ-Raven/swing-modal-dialog
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.37 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build and Release
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]*'
jobs:
build:
runs-on: ubuntu-latest
name: Build JAR and Release
steps:
- uses: actions/checkout@v4
- name: Set up JDK 22
uses: actions/setup-java@v4
with:
java-version: '22'
distribution: 'oracle'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build JAR with Maven
run: mvn clean package -DskipTests --file pom.xml
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
validation_level: warn
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
with:
files: |
./modal-dialog/target/*.jar
./demo/target/modal-dialog-demo-*.jar
tag_name: ${{ github.ref_name }}
name: ${{ github.ref_name }}
body: ${{ steps.changelog_reader.outputs.changes }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}