@@ -3,6 +3,7 @@ name: Build exe
3
3
on :
4
4
push :
5
5
branches : [ main, dev ]
6
+ tags : ['v*']
6
7
7
8
jobs :
8
9
exe :
79
80
if : always()
80
81
with :
81
82
name : cli
82
- path : ' cli.exe'
83
+ path : ' cli.exe'
84
+
85
+ - name : Create Release
86
+ id : create_release
87
+ if : ${{ github.ref }} && true
88
+ uses : actions/create-release@v1
89
+ env :
90
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
91
+ with :
92
+ tag_name : ${{ github.ref }}
93
+ release_name : Release ${{ github.ref }}
94
+ draft : true
95
+ prerelease : false
96
+
97
+ - name : Upload GUI Release Asset
98
+ if : ${{ github.ref }} && true
99
+ uses : actions/upload-release-asset@v1
100
+ env :
101
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
102
+ with :
103
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
104
+ asset_path : ./gui.exe
105
+ asset_name : BravePatcher_gui.exe
106
+ asset_content_type : " application/octet-stream"
107
+
108
+ - name : Upload CLI Release Asset
109
+ if : ${{ github.ref }} && true
110
+ uses : actions/upload-release-asset@v1
111
+ env :
112
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
113
+ with :
114
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
115
+ asset_path : ./cli.exe
116
+ asset_name : BravePatcher_cli.exe
117
+ asset_content_type : " application/octet-stream"
118
+
119
+ - name : Upload WHL Release Asset
120
+ if : ${{ github.ref }} && true
121
+ uses : actions/upload-release-asset@v1
122
+ env :
123
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
124
+ with :
125
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
126
+ asset_path : ./dist/bravepatcher-0.1.0-py3-none-any.whl
127
+ asset_name : bravepatcher-0.1.0-py3-none-any.whl
128
+ asset_content_type : " application/octet-stream"
0 commit comments