Skip to content

Commit d537974

Browse files
committed
Move release into a separate job step
1 parent 69b7207 commit d537974

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Build
2626
run: ./gradlew build --stacktrace --scan
2727

28-
- name: Upload artifact
28+
- name: Upload JARs
2929
uses: actions/upload-artifact@v3
3030
with:
3131
name: jars
@@ -34,11 +34,24 @@ jobs:
3434
!**/*-sources.jar
3535
!**/*-javadoc.jar
3636
37+
release:
38+
if: startsWith(github.ref, 'refs/tags/')
39+
needs: build-linux
40+
41+
runs-on: ubuntu-latest
42+
43+
steps:
44+
- name: Checkout latest code
45+
uses: actions/checkout@v3
46+
47+
- name: Download JARs
48+
uses: actions/download-artifact@v3
49+
with:
50+
name: jars
51+
path: build/jars
52+
3753
- name: Release
3854
uses: softprops/action-gh-release@v1
39-
if: startsWith(github.ref, 'refs/tags/')
4055
with:
4156
files: |
42-
juliet-*/build/libs/*.jar
43-
!**/*-sources.jar
44-
!**/*-javadoc.jar
57+
build/jars/*.jar

0 commit comments

Comments
 (0)