Skip to content

Commit 16cbde4

Browse files
author
liuboping
committed
fix(ci): correct artifact upload paths for Linux and Windows builds
- Linux: zip was created inside bundle/ dir, upload path was wrong - Windows: zip destination was build/windows/ instead of build/windows/x64/ - Both caused release job glob to find no binaries, leaving only GitHub's auto-generated source archive
1 parent 5f81ea9 commit 16cbde4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
if: matrix.platform == 'ubuntu-latest'
3131
run: |
3232
flutter build linux --release
33-
cd build/linux/x64/release/bundle
34-
zip -r lbpSSH-linux-x64.zip .
33+
cd build/linux/x64/release
34+
zip -r lbpSSH-linux-x64.zip bundle
3535
- name: Build macOS
3636
if: matrix.platform == 'macos-latest'
3737
run: |
@@ -42,13 +42,13 @@ jobs:
4242
if: matrix.platform == 'windows-latest'
4343
run: |
4444
flutter build windows --release
45-
Compress-Archive -Path build/windows/x64/runner/Release -DestinationPath build/windows/lbpSSH-windows-x64.zip
45+
Compress-Archive -Path build/windows/x64/runner -DestinationPath build/windows/x64/lbpSSH-windows-x64.zip
4646
- name: Upload Linux build
4747
if: matrix.platform == 'ubuntu-latest'
4848
uses: actions/upload-artifact@v4
4949
with:
5050
name: linux-build
51-
path: build/linux/x64/release/bundle/lbpSSH-linux-x64.zip
51+
path: build/linux/x64/release/lbpSSH-linux-x64.zip
5252
- name: Upload macOS build
5353
if: matrix.platform == 'macos-latest'
5454
uses: actions/upload-artifact@v4
@@ -60,7 +60,7 @@ jobs:
6060
uses: actions/upload-artifact@v4
6161
with:
6262
name: windows-build
63-
path: build/windows/lbpSSH-windows-x64.zip
63+
path: build/windows/x64/lbpSSH-windows-x64.zip
6464

6565
release:
6666
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)