Skip to content

Commit 2f7f524

Browse files
committed
Added win pipeline
1 parent 45bbe3d commit 2f7f524

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,27 @@ jobs:
1616
uses: actions/checkout@v2
1717

1818

19-
- name: PyInstaller-Linux
19+
- name: PyInstaller Linux
2020
uses: JackMcKew/[email protected]
2121
with:
2222
path: .
2323

24+
- name: PyInstaller Windows
25+
uses: JackMcKew/pyinstaller-action-windows@python3-10-pyinstaller-5-3
26+
with:
27+
path: .
28+
2429
- name: Cp Linux Dist
25-
run : cp -r dist/linux/triangle_check .
30+
run : cp -r dist/linux/triangle_check triangle_check_linux
2631

2732
- name: Zip Linux Dist
28-
run : zip -r triangle_check.zip triangle_check
33+
run : zip -r triangle_check_linux.zip triangle_check_linux
34+
35+
- name: Cp Win Dist
36+
run : cp -r dist/windows/triangle_check_win triangle_check_win
37+
38+
- name: Zip Win Dist
39+
run : zip -r triangle_check_win.zip triangle_check_win
2940

3041
- name: Create Release
3142
id: create_release
@@ -38,13 +49,24 @@ jobs:
3849
draft: false
3950
prerelease: false
4051

41-
- name: Upload Release Asset
42-
id: upload-release-asset
52+
- name: Upload Linux Release Asset
53+
id: upload-linux-release-asset
54+
uses: actions/upload-release-asset@v1
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
with:
58+
upload_url: ${{ steps.create_release.outputs.upload_url }}
59+
asset_path: ./triangle_check_linux.zip
60+
asset_name: triangle_check_linux.zip
61+
asset_content_type: application/gzip
62+
63+
- name: Upload Win Release Asset
64+
id: upload-win-release-asset
4365
uses: actions/upload-release-asset@v1
4466
env:
4567
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4668
with:
4769
upload_url: ${{ steps.create_release.outputs.upload_url }}
48-
asset_path: ./triangle_check.zip
49-
asset_name: triangle_check.zip
70+
asset_path: ./triangle_check_win.zip
71+
asset_name: triangle_check_win.zip
5072
asset_content_type: application/gzip

0 commit comments

Comments
 (0)