try powahshell syntax
- SHA
cc3b4c453b9817e9dc43a9fb2fdc3d07fe1985c4- Parents
-
a0f7534 - Tree
1c74366
cc3b4c4
cc3b4c453b9817e9dc43a9fb2fdc3d07fe1985c4a0f7534
1c74366| Status | File | + | - |
|---|---|---|---|
| M |
.github/workflows/release.yml
|
13 | 2 |
.github/workflows/release.ymlmodified@@ -27,12 +27,23 @@ jobs: | ||
| 27 | 27 | run: pyinstaller wulftp.spec |
| 28 | 28 | |
| 29 | 29 | - name: List dist contents |
| 30 | - run: dir dist | |
| 30 | + run: | | |
| 31 | + echo "Contents of dist:" | |
| 32 | + dir dist | |
| 33 | + echo "Contents of dist\wulFTP (if exists):" | |
| 34 | + if (Test-Path dist\wulFTP) { dir dist\wulFTP } | |
| 31 | 35 | |
| 32 | 36 | - name: Create archive |
| 33 | 37 | run: | |
| 34 | 38 | cd dist |
| 35 | - 7z a -tzip wulFTP-windows.zip wulFTP/ | |
| 39 | + if (Test-Path wulFTP.exe) { | |
| 40 | + 7z a -tzip wulFTP-windows.zip wulFTP.exe | |
| 41 | + } elseif (Test-Path wulFTP) { | |
| 42 | + 7z a -tzip wulFTP-windows.zip wulFTP\* | |
| 43 | + } else { | |
| 44 | + echo "Error: Cannot find wulFTP executable or directory" | |
| 45 | + exit 1 | |
| 46 | + } | |
| 36 | 47 | |
| 37 | 48 | - name: Upload artifact |
| 38 | 49 | uses: actions/upload-artifact@v4 |