File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
# .github/workflows/build-release.yml
2
2
name : Build Release
3
3
4
+ permissions :
5
+ contents : write
6
+
4
7
on :
5
8
release :
6
9
types : [published]
@@ -67,16 +70,22 @@ jobs:
67
70
with :
68
71
name : fancyfetch-${{runner.os}}
69
72
path : |
70
- fancyfetch-*.tar.gz
71
- fancyfetch-*.zip
73
+ ./ fancyfetch-*.tar.gz
74
+ ./ fancyfetch-*.zip
72
75
retention-days : 30
73
76
74
- - name : Upload to release (on release only)
75
- if : github.event_name == 'release'
77
+ - name : Upload to release (Linux/Mac)
78
+ if : github.event_name == 'release' && runner.os != 'Windows'
79
+ uses : softprops/action-gh-release@v1
80
+ with :
81
+ files : ./fancyfetch-*.tar.gz
82
+ env :
83
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
84
+
85
+ - name : Upload to release (Windows)
86
+ if : github.event_name == 'release' && runner.os == 'Windows'
76
87
uses : softprops/action-gh-release@v1
77
88
with :
78
- files : |
79
- fancyfetch-*.tar.gz
80
- fancyfetch-*.zip
89
+ files : ./fancyfetch-*.zip
81
90
env :
82
91
GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments