[PECL-CVS] [pecl-networking-ssh2] master: Publish artifacts as zip

[email protected] (Fernando Herrero via Casper Langemeijer)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Fernando Herrero (alphp)
Committer: Casper Langemeijer (langemeijer)
Date: 2025-11-23T12:36:27+01:00

Commit: https://github.com/php/pecl-networking-ssh2/commit/dde47d6166aa91279f49aa65edcd9a7ebd7ecafb
Raw diff: https://github.com/php/pecl-networking-ssh2/commit/dde47d6166aa91279f49aa65edcd9a7ebd7ecafb.diff

Publish artifacts as zip

Changed paths:
  M  .github/workflows/build.yml


Diff:

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 198095a..2115011 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -80,13 +80,13 @@ jobs:
                     echo $extension_artifact_name >> $env:GITHUB_ENV
 
                     $from = $dir + '\php_ssh2.dll'
-                    $to = $dir + '\' + $artifact_name + ".dll"
-                    Copy-Item $from -Destination $to
-                    $extension_artifact = "ARTIFACT=" + $to
+                    $to = $from + ".zip"
+                    Compress-Archive $from $to
+                    $extension_artifact = "ARTIFACT=" + $from
                     echo $extension_artifact >> $env:GITHUB_ENV
 
                 - name: Upload artifacts
-                  uses: actions/upload-artifact@v3
+                  uses: actions/upload-artifact@v4
                   with:
                       name: ${{env.ARTIFACT_NAME}}
                       path: ${{env.ARTIFACT}}
@@ -94,5 +94,5 @@ jobs:
                   if: ${{ startsWith(github.ref, 'refs/tags') }}
                   uses: svenstaro/upload-release-action@v2
                   with:
-                      asset_name: ${{env.ARTIFACT_NAME}}.dll
-                      file: ${{env.ARTIFACT}}
+                      asset_name: ${{env.ARTIFACT_NAME}}.zip
+                      file: ${{env.ARTIFACT}}.zip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.