File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66jobs :
77 build :
88 if : startsWith(github.ref, 'refs/tags/')
9- runs-on : ubuntu -latest
9+ runs-on : windows -latest
1010 steps :
1111 - name : Checkout code
1212 uses : actions/checkout@v2
13- - name : Build executable with PyInstaller
14- uses : JackMcKew/pyinstaller-action-windows@v0.1.2
13+ - name : Install Python
14+ uses : actions/setup-python@v1
1515 with :
16- path : ' .'
17- spec : ' k2c.spec' # 可选
18- # requirements: 'requirements.txt' # 可选
16+ python-version : ' 3.13'
17+ architecture : ' x64'
18+ - name : Install requirements and installer
19+ run : |
20+ pip install -r requirements.txt
21+ pip install pyinstaller
22+ - name : Run pyinstaller
23+ run : |
24+ python -m PyInstaller k2c.spec
1925 - run : ls dist
2026 - run : mv dist/k2c.exe .
21- - name : zip the build
22- run : |
23- zip -r k2c.zip k2c.exe
24- ls .
27+ - run : ls .
2528 - name : Build Changelog
2629 id : github_release
2730 uses : mikepenz/release-changelog-builder-action@v5
You can’t perform that action at this time.
0 commit comments