Skip to content

Commit bb02537

Browse files
committed
ci: fix release workflow for tagged releases
1 parent ef183fb commit bb02537

1 file changed

Lines changed: 23 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,42 @@
1-
name: Release
1+
name: release
2+
23
on:
34
push:
45
tags:
5-
- 'v*'
6+
- 'v*' # e.g. v1.1.3, v2.0.0 etc
7+
68
permissions:
79
contents: write
10+
811
jobs:
912
release:
1013
runs-on: ubuntu-latest
14+
1115
steps:
12-
- uses: actions/checkout@v4
16+
- name: Checkout
17+
uses: actions/checkout@v4
1318
with:
1419
fetch-depth: 0
15-
- uses: actions/setup-java@v4
20+
21+
- name: Set up JDK 21
22+
uses: actions/setup-java@v4
1623
with:
1724
distribution: temurin
1825
java-version: '21'
19-
- run: ./gradlew clean uberJar --no-daemon
20-
- run: |
26+
27+
- name: Make gradlew executable
28+
run: chmod +x ./gradlew
29+
30+
- name: Build uberJar
31+
run: ./gradlew --no-daemon clean uberJar
32+
33+
- name: Generate checksums
34+
run: |
2135
cd build/libs
2236
sha256sum *.jar > checksums.txt
23-
- uses: softprops/action-gh-release@v2
37+
38+
- name: Create GitHub Release
39+
uses: softprops/action-gh-release@v2
2440
with:
2541
generate_release_notes: true
2642
files: |

0 commit comments

Comments
 (0)