10
10
11
11
jobs :
12
12
build-executable :
13
- runs-on : ubuntu -latest
13
+ runs-on : windows -latest
14
14
15
15
steps :
16
16
# Step 1: Checkout the repository
@@ -26,23 +26,20 @@ jobs:
26
26
# Step 3: Install dependencies
27
27
- name : Install dependencies
28
28
run : |
29
- python -m pip install --upgrade pip
30
29
pip install -r requirements.txt
31
30
pip install pyinstaller
32
31
33
- # Step 4: Build the executable
32
+ # Step 4: Build the Windows executable
34
33
- name : Build executable
35
34
run : |
36
- pyinstaller --noconfirm --noconsole --icon=file_renamer_icon.ico --add-data= "file_renamer_icon.ico: ." --hidden-import=pillow_heif --hidden-import=pytz.zoneinfo --exclude-module= numpy --exclude-module= mkl --exclude-module= tcl --exclude-module= tbb --exclude-module= pywin32 --exclude-module=psutil --distpath=dist --workpath=build rename_files.py
35
+ pyinstaller --noconfirm --noconsole --icon=file_renamer_icon.ico --add-data "file_renamer_icon.ico; ." --hidden-import=pillow_heif --hidden-import=pytz.zoneinfo --exclude-module numpy --exclude-module mkl --exclude-module tcl --exclude-module tbb --exclude-module pywin32 --exclude-module psutil rename_files.py
37
36
38
37
# Step 5: Upload as artifact
39
- - name : Upload executable
38
+ - name : Upload artifact
40
39
uses : actions/upload-artifact@v4
41
40
with :
42
41
name : rename_files_executable
43
- path : |
44
- dist/rename_files/*
45
- build/rename_files/*
42
+ path : dist/
46
43
47
44
update-gh-pages :
48
45
runs-on : ubuntu-latest
@@ -132,11 +129,11 @@ jobs:
132
129
- name : Checkout repository
133
130
uses : actions/checkout@v3
134
131
135
- # Step 2: Update webpage content ( with executable update)
132
+ # Step 2: Update webpage content with release executable
136
133
- name : Update webpage with release executable
137
134
run : |
138
135
mkdir gh-pages
139
- cp dist/rename_files/rename_files .exe gh-pages/
136
+ cp dist/rename_files.exe gh-pages/
140
137
echo '<!DOCTYPE html>
141
138
<html lang="en">
142
139
<head>
0 commit comments