Skip to content

Commit 9f98e23

Browse files
authored
split jobs for one release.
1 parent 6e73d9a commit 9f98e23

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,23 @@ jobs:
2727
java-version: 11
2828
- name: Build with Gradle
2929
run: ./gradlew nativeCompile
30-
30+
- uses: actions/upload-artifact@master
31+
with:
32+
name: executable
33+
path: build/native/nativeCompile/gh-echo*
34+
35+
publish:
36+
runs-on: ubuntu-latest
37+
needs: build
38+
steps:
39+
- uses: actions/download-artifact@master
40+
with:
41+
name: executable
3142
- uses: "marvinpinto/action-automatic-releases@latest"
3243
with:
3344
repo_token: "${{ secrets.GITHUB_TOKEN }}"
3445
automatic_release_tag: "latest"
35-
prerelease: true
36-
title: "Development Build"
37-
files: |
38-
build/native/nativeCompile/gh-echo*
46+
prerelease: false
47+
title: {{ github.ref_name }}
48+
files: 'gh-echo*'
49+

0 commit comments

Comments
 (0)