File tree 1 file changed +5
-22
lines changed
1 file changed +5
-22
lines changed Original file line number Diff line number Diff line change 18
18
shell : " bash"
19
19
- os : " windows-2022"
20
20
shell : " msys2 {0}"
21
+ permissions :
22
+ contents : write
21
23
defaults :
22
24
run :
23
25
shell : ${{ matrix.shell }}
@@ -26,31 +28,12 @@ jobs:
26
28
- uses : actions/checkout@v4
27
29
- name : Build script
28
30
run : ./build.sh
29
- - uses : actions/upload-artifact@v4
30
- with :
31
- name : artifacts-${{ matrix.os }}
32
- path : ./artefacts/*
33
- retention-days : 3
34
-
35
- release :
36
- name : Upload Binaries to GitHub Release
37
- needs : [build]
38
- runs-on : ubuntu-latest
39
- permissions :
40
- contents : write
41
- # upload binaries to github release if commit is tagged
42
- if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
43
- steps :
44
- - uses : actions/download-artifact@v4
45
- with :
46
- pattern : artifacts-*
47
- merge-multiple : true
48
- path : binaries
49
- - name : Upload binaries to release
31
+ - name : Upload binaries to release if commit is tagged
32
+ if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
50
33
uses : svenstaro/upload-release-action@v2
51
34
with :
52
35
repo_token : ${{ secrets.GITHUB_TOKEN }}
53
- file : binaries /*
36
+ file : ./artefacts /*
54
37
tag : ${{ github.ref }}
55
38
overwrite : true
56
39
file_glob : true
You can’t perform that action at this time.
0 commit comments