Skip to content

Commit 20324ed

Browse files
committed
fix
1 parent f6874ec commit 20324ed

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/build.yaml

+8-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Build ffsubsync Executables
22

33
on:
44
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
58

69
jobs:
710
build:
@@ -14,10 +17,10 @@ jobs:
1417

1518
steps:
1619
- name: Check out the repository
17-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
1821

1922
- name: Set up Python
20-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v5
2124
with:
2225
python-version: ${{ matrix.python-version }}
2326

@@ -28,12 +31,12 @@ jobs:
2831
2932
- name: Build executable
3033
run: |
31-
pyinstaller --onefile --name ffsubsync_exe --paths $(python -c "import ffsubsync, os; print(os.path.dirname(ffsubsync.__file__))") -F $(python -c "import ffsubsync.__main__; print(ffsubsync.__main__.__file__)")
34+
pyinstaller --onefile --name ffsubsync_bin --copy-metadata --paths $(python -c "import ffsubsync, os; print(os.path.dirname(ffsubsync.__file__))") -F $(python -c "import ffsubsync.ffsubsync; print(ffsubsync.ffsubsync.__file__)")
3235
shell: bash
3336

3437
- name: Archive the build
3538
uses: actions/upload-artifact@v3
3639
with:
37-
name: ffsubsync_exe-${{ matrix.os }}
40+
name: ffsubsync_bin-${{ matrix.os }}
3841
path: |
39-
dist/ffsubsync_exe${{ matrix.os == 'windows-latest' && '.exe' || '' }}
42+
dist/ffsubsync_bin${{ matrix.os == 'windows-latest' && '.exe' || '' }}

0 commit comments

Comments
 (0)