Skip to content

Commit bc18adb

Browse files
committed
Publish distributable build on GH
1 parent 880b70c commit bc18adb

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,19 @@ jobs:
2222
run: ./gradlew quickTest
2323

2424
- name: Build & test the full distributable
25-
run: ./gradlew distTest
25+
run: ./gradlew distTest
26+
27+
- uses: actions/upload-artifact@v2
28+
with:
29+
name: distributables
30+
path: build/libs/*-dist.jar
31+
if-no-files-found: error
32+
33+
- name: Publish tagged release
34+
uses: svenstaro/upload-release-action@v2
35+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
36+
with:
37+
repo_token: ${{ secrets.GITHUB_TOKEN }}
38+
file: build/libs/*-dist.jar
39+
file_glob: true
40+
tag: ${{ github.ref }}

0 commit comments

Comments
 (0)