Skip to content

Commit 0bbfe7f

Browse files
committed
ci: automate release and jar publishing on tag push
1 parent 770dc17 commit 0bbfe7f

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Build and Release
22

33
on:
44
push:
@@ -8,6 +8,8 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113

1214
steps:
1315
- uses: actions/checkout@v4
@@ -29,8 +31,10 @@ jobs:
2931
VERSION=${GITHUB_REF_NAME#v}
3032
./gradlew collectJars -Pversion=$VERSION
3133
32-
- name: Upload Artifacts
33-
uses: actions/upload-artifact@v4
34+
- name: Create GitHub Release
35+
uses: softprops/action-gh-release@v2
3436
with:
35-
name: netutils-jars
36-
path: build/libs/*.jar
37+
files: build/libs/*.jar
38+
generate_release_notes: true
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)