Skip to content

Commit 758d3ce

Browse files
committed
Add release job
1 parent e18f97f commit 758d3ce

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ env:
66
plugin: Robotone
77

88
jobs:
9+
910
build:
1011
runs-on: ${{matrix.os}}
1112

@@ -57,9 +58,25 @@ jobs:
5758
run: .\scripts\postbuild_windows.bat
5859
shell: cmd
5960

60-
- name: Archive build artefacts
61+
- name: Upload build artefacts
6162
if: github.event_name == 'push'
6263
uses: actions/upload-artifact@master
6364
with:
6465
name: ${{env.plugin}}-${{matrix.os}}
6566
path: ./build/src/${{env.plugin}}/${{env.plugin}}_artefacts/Release
67+
68+
release:
69+
if: github.ref_type == 'tag'
70+
needs: build
71+
runs-on: ubuntu-latest
72+
73+
steps:
74+
- name: Download all build artefacts
75+
uses: actions/download-artifact@master
76+
with:
77+
path: ./artefacts
78+
79+
- name: Upload all artefacts to GitHub release
80+
uses: softprops/action-gh-release@master
81+
with:
82+
files: ./artefacts/*

0 commit comments

Comments
 (0)