Skip to content

Commit c274ac0

Browse files
committed
Updating workflow again
1 parent 660b22f commit c274ac0

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/workflow.yml

+7-10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
build-executable:
13-
runs-on: ubuntu-latest
13+
runs-on: windows-latest
1414

1515
steps:
1616
# Step 1: Checkout the repository
@@ -26,23 +26,20 @@ jobs:
2626
# Step 3: Install dependencies
2727
- name: Install dependencies
2828
run: |
29-
python -m pip install --upgrade pip
3029
pip install -r requirements.txt
3130
pip install pyinstaller
3231
33-
# Step 4: Build the executable
32+
# Step 4: Build the Windows executable
3433
- name: Build executable
3534
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
3736
3837
# Step 5: Upload as artifact
39-
- name: Upload executable
38+
- name: Upload artifact
4039
uses: actions/upload-artifact@v4
4140
with:
4241
name: rename_files_executable
43-
path: |
44-
dist/rename_files/*
45-
build/rename_files/*
42+
path: dist/
4643

4744
update-gh-pages:
4845
runs-on: ubuntu-latest
@@ -132,11 +129,11 @@ jobs:
132129
- name: Checkout repository
133130
uses: actions/checkout@v3
134131

135-
# Step 2: Update webpage content (with executable update)
132+
# Step 2: Update webpage content with release executable
136133
- name: Update webpage with release executable
137134
run: |
138135
mkdir gh-pages
139-
cp dist/rename_files/rename_files.exe gh-pages/
136+
cp dist/rename_files.exe gh-pages/
140137
echo '<!DOCTYPE html>
141138
<html lang="en">
142139
<head>

0 commit comments

Comments
 (0)