We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6272b39 commit 013a43dCopy full SHA for 013a43d
.github/workflows/build-executable.yml
@@ -0,0 +1,34 @@
1
+name: Build Executable
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch: # Allow manual triggering
8
9
+jobs:
10
+ build:
11
+ runs-on: windows-latest
12
13
+ steps:
14
+ - name: Checkout repository
15
+ uses: actions/checkout@v3
16
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v4
19
+ with:
20
+ python-version: '3.12'
21
22
+ - name: Install dependencies
23
+ run: |
24
+ pip install pyinstaller
25
26
+ - name: Build executable
27
28
+ pyinstaller --onefile --noconsole --icon=file_renamer_icon.ico --add-data "file_renamer_icon.ico;." rename_files.py
29
30
+ - name: Upload artifact
31
+ uses: actions/upload-artifact@v3
32
33
+ name: rename_files_executable
34
+ path: dist/rename_files.exe
0 commit comments