Skip to content

Commit 4501ffd

Browse files
committed
Add release workflow
1 parent 6e26093 commit 4501ffd

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Maven Build and Make Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up JDK 8
15+
uses: actions/setup-java@v4
16+
with:
17+
java-version: '8'
18+
distribution: 'temurin'
19+
cache: maven
20+
- name: Build with Maven
21+
run: mvn -B package --file pom.xml
22+
- name: Create Release
23+
id: create_release
24+
uses: softprops/action-gh-release@v2
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
tag_name: ${{ github.ref }}
28+
name: JavaCheck ${{ env.VERSION }}
29+
draft: true
30+
prerelease: false
31+
files: |
32+
target/*.jar

0 commit comments

Comments
 (0)