Skip to content

Commit b78f6b8

Browse files
committed
update yml
1 parent 4a471bd commit b78f6b8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build_exe.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
2929
- name: Build executable
3030
run: |
31-
pyinstaller --name=dbcompare --onefile --windowed --add-data "img/icon.png;img" --icon="icon.ico" main.py
31+
pyinstaller --onefile --windowed --add-data "img/icon.png;img" --icon="icon.ico" main.py
3232
3333
- name: List dist directory # Check if the executable is created
3434
run: dir dist # For Windows, this will list files in the dist directory
@@ -37,10 +37,14 @@ jobs:
3737
run: |
3838
Compress-Archive -Path dist\dbcompare.exe -DestinationPath dbcompare.zip
3939
40-
- name: Upload artifacts
41-
uses: actions/upload-artifact@v3
40+
- name: Create Release
41+
uses: softprops/action-gh-release@v1
4242
with:
43-
name: dbcompare-app
44-
path: |
43+
tag_name: ${{ github.ref }} # Use the tag that triggered this workflow
44+
files: |
4545
dist\dbcompare.exe
4646
dbcompare.zip
47+
name: Release ${{ github.ref_name }}
48+
body: This is a new release of DBCompare.
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)