Skip to content

Commit d53b7bb

Browse files
committed
Improve relase
1 parent 52907fa commit d53b7bb

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/main.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Package and Release Python Application
22

33
on:
44
push:
5-
branches:
6-
- main
5+
tags:
6+
- "v*.*.*"
77

88
jobs:
99
build:
@@ -32,16 +32,23 @@ jobs:
3232
mkdir release
3333
cp resources/* release
3434
cp dist/ws_osd_gen.exe release
35-
tar -a -c -f "pre-release-${{ github.sha }}-windows.zip" release
35+
tar -a -c -f "release-${{ github.sha }}-windows.zip" release
3636
3737
3838
- name: Release
3939
uses: softprops/action-gh-release@v1
4040
with:
41-
tag_name: master-${{ github.sha }}
42-
name: Pre-release ${{ github.sha }}
43-
prerelease: true
41+
name: Release ${{ github.ref_name }}
42+
prerelease: false
43+
draft: true
4444
fail_on_unmatched_files: true
4545
generate_release_notes: true
46-
files: pre-release-${{ github.sha }}-windows.zip
47-
append_body: "This is latest build from master branch"
46+
files: release-${{ github.sha }}-windows.zip
47+
append_body: true
48+
body: |
49+
This is a latest release from master branch.
50+
---
51+
## Coffee needed
52+
If you like tool, you can buy me a coffee so keep working more overnights :)
53+
54+
<a href="https://www.buymeacoffee.com/kirek" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 30px !important;width: 108 !important;" ></a>

0 commit comments

Comments
 (0)