Skip to content

Commit 3504c1d

Browse files
committed
build
1 parent d45ea86 commit 3504c1d

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.github/workflows/publish-binary.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,26 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v3
15+
- name: Set up Python 3.10
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: "3.10"
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
python -m pip install flake8 pytest coveralls pytest-cov mypy
23+
- name: Install PyInstaller
24+
run: |
25+
python -m pip install pyinstaller
26+
- name: Build Executable Binary
27+
run: |
28+
pyinstaller check.py
1529
- name: Upload binaries to release
1630
uses: svenstaro/upload-release-action@v2
1731
with:
1832
repo_token: ${{ secrets.PAT }}
19-
file: README.md
20-
asset_name: mything
33+
file: dist/*
34+
file_glob: true
35+
asset_name: greet
2136
tag: ${{ github.ref }}
2237
overwrite: true

check.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
print('hello world')
2+
input('Press enter to exit.')

0 commit comments

Comments
 (0)