tenseleyflow/wulftp / cc3b4c4

Browse files

try powahshell syntax

Authored by espadonne
SHA
cc3b4c453b9817e9dc43a9fb2fdc3d07fe1985c4
Parents
a0f7534
Tree
1c74366

1 changed file

StatusFile+-
M .github/workflows/release.yml 13 2
.github/workflows/release.ymlmodified
@@ -27,12 +27,23 @@ jobs:
2727
       run: pyinstaller wulftp.spec
2828
     
2929
     - 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 }
3135
     
3236
     - name: Create archive
3337
       run: |
3438
         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
+        }
3647
     
3748
     - name: Upload artifact
3849
       uses: actions/upload-artifact@v4