Skip to content

Commit a6cd0f3

Browse files
committed
Add release GHA workflow
Signed-off-by: Jarno Elovirta <[email protected]>
1 parent 147acbd commit a6cd0f3

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

.github/workflows/gradle.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Java CI
1+
name: Test
22

33
on: [push]
44

@@ -14,4 +14,4 @@ jobs:
1414
java-version: '17'
1515
cache: 'gradle'
1616
- name: Build with Gradle
17-
run: ./gradlew build
17+
run: ./gradlew build --no-daemon

.github/workflows/release.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up JDK 17
13+
uses: actions/setup-java@v4
14+
with:
15+
distribution: 'temurin'
16+
java-version: '17'
17+
cache: 'gradle'
18+
- name: Build with Gradle
19+
run: ./gradlew dist --no-daemon
20+
- name: Deploy distribution package to releases
21+
uses: softprops/action-gh-release@v1
22+
with:
23+
files: |
24+
build/distributions/*.zip

0 commit comments

Comments
 (0)