-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 897 Bytes
/
python-package.yml
File metadata and controls
42 lines (34 loc) · 897 Bytes
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
41
42
# This is a basic workflow to help you get started with Actions
name: Python Packaging by Nuitka
# Controls when the workflow will run
on: workflow_dispatch
defaults:
run:
shell: cmd
jobs:
build:
name: Build an EXEcutable flie
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
if EXIST requirements.txt (
pip install -r requirements.txt
)
- name: Bulid the python script
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: test.py
onefile: true
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: exe
path: build/test.exe