Skip to content

Commit 013a43d

Browse files
committed
Adding GitHub Actions workflow to automatically create the executable along with a push
1 parent 6272b39 commit 013a43d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -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+
run: |
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+
with:
33+
name: rename_files_executable
34+
path: dist/rename_files.exe

0 commit comments

Comments
 (0)