File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build Executable with PyInstaller
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : windows-latest # Use Windows runner to build a .exe file
14
+
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v3
18
+
19
+ - name : Set up Python
20
+ uses : actions/setup-python@v4
21
+ with :
22
+ python-version : ' 3.12' # Specify your Python version
23
+
24
+ - name : Install dependencies
25
+ run : |
26
+ python -m pip install --upgrade pip
27
+ pip install -r requirements.txt
28
+
29
+ - name : Build executable with PyInstaller
30
+ run : pyinstaller --onefile assetsBrowser.py # Adjust your script name
31
+
32
+ - name : Archive the build artifact
33
+ uses : actions/upload-artifact@v3
34
+ with :
35
+ name : executable
36
+ path : dist/assetsBrowser.exe # Adjust to match the output executable name
37
+
You can’t perform that action at this time.
0 commit comments