Commit 25ced68 1 parent ac8b92b commit 25ced68 Copy full SHA for 25ced68
File tree 1 file changed +14
-11
lines changed
1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Build and Release
2
2
3
3
on :
4
4
push :
5
- tags :
6
- - " v*"
5
+ branches : [ master ]
6
+ tags : [ "v*" ]
7
7
8
8
jobs :
9
9
build :
@@ -43,18 +43,21 @@ jobs:
43
43
cd build/Release
44
44
zip -r NetSpeedMonitor.zip NetSpeedMonitor.app
45
45
46
- - name : Get Release Notes
47
- id : get_notes
48
- run : |
49
- TAG_NAME=${GITHUB_REF#refs/tags/}
50
- NOTES=$(awk "/## $TAG_NAME/{flag=1;next}/## /{flag=0}flag" RELEASE_NOTES.md)
51
- echo "notes=$NOTES" >> $GITHUB_OUTPUT
46
+ - name : Upload Artifacts (Master)
47
+ if : github.ref == 'refs/heads/master'
48
+ uses : actions/upload-artifact@v4
49
+ with :
50
+ name : build-${{ github.sha }}
51
+ path : build/
52
52
53
- - name : Create GitHub Release
54
- uses : softprops/action-gh-release@v1
53
+ - name : Create Release Draft
54
+ if : startsWith(github.ref, 'refs/tags/v')
55
+ uses : softprops/action-gh-release@v2
55
56
with :
56
- body : ${{ steps.get_notes.outputs.notes }}
57
+ draft : true
58
+ body_path : RELEASE_NOTES.MD
57
59
files : |
58
60
build/Release/NetSpeedMonitor.zip
61
+ build/Release/NetSpeedMonitor.app
59
62
env :
60
63
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments