-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.08 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: build-exe
on:
workflow_dispatch:
release:
types: [created] # 表示在创建新的 Release 时触发
jobs:
generate_win_exe:
name: Generate windows executable
runs-on: windows-latest
steps:
- name: Pyinstaller build
uses: sayyid5416/[email protected]
with:
spec: fixIcon.py
requirements: requirements.txt
upload_exe_with_name: 'fixIcon'
options: --onefile,
- name: Pyinstaller build V2
uses: sayyid5416/[email protected]
with:
spec: FastFixIcon.py
requirements: requirements.txt
upload_exe_with_name: 'FastFixIcon'
options: --onefile,
- uses: actions/download-artifact@v3
with:
path: dist\out
- name: Display structure of downloaded files
run: dir -s
working-directory: dist\out
- name: Upload to release
uses: xresloader/[email protected]
with:
file: dist\out\fixIcon;dist\out\FastFixIcon
update_latest_release: true
draft: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}