Skip to content

Commit a2c189d

Browse files
committed
build.yml
1 parent b7e28fd commit a2c189d

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
name: Build Hashing Algorithm
1+
name: Build and Release
22

33
on:
4-
push:
5-
branches: [ main, master ]
6-
pull_request:
7-
branches: [ main, master ]
8-
workflow_dispatch:
4+
release:
5+
types: [created]
96

107
jobs:
118
build-windows:
@@ -48,14 +45,16 @@ jobs:
4845
run: pyinstaller --clean HashingGUI.spec
4946
shell: cmd
5047

51-
- name: Upload compiled executables
52-
uses: actions/upload-artifact@v4
53-
with:
54-
name: hashing-executables
55-
path: bin/*.exe
48+
- name: Create distribution archive
49+
run: |
50+
cd dist
51+
tar -czf HashingGUI-Windows.tar.gz *
52+
cd ..
53+
shell: bash
5654

57-
- name: Upload PyInstaller build
58-
uses: actions/upload-artifact@v4
55+
- name: Upload release asset
56+
uses: softprops/action-gh-release@v1
5957
with:
60-
name: HashingGUI-Windows
61-
path: dist/
58+
files: dist/HashingGUI-Windows.tar.gz
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)