Skip to content

Commit 8642ce9

Browse files
committed
Update release-cli.yaml
1 parent 8285eb7 commit 8642ce9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/release-cli.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,22 +183,22 @@ jobs:
183183
echo "::set-output name=package2::$package2"
184184
echo "::set-output name=package3::$package3"
185185
186-
- name: Repackage CLI for MacOS and Linux
187-
shell: pwsh
186+
- name: Repackage CLI for Linux and MacOS
187+
shell: bash
188188
run: |
189-
Expand-Archive -Path "./artifacts/${{ steps.package.outputs.package1 }}" -DestinationPath "./artifacts/linux"
189+
unzip "./artifacts/${{ steps.package.outputs.package1 }}" -d "./artifacts/linux"
190190
chmod +x ./artifacts/linux/azfuncopenapi
191-
192191
ls -al ./artifacts/linux
192+
rm "./artifacts/${{ steps.package.outputs.package1 }}"
193+
zip -r "./artifacts/${{ steps.package.outputs.package1 }}" "./artifacts/linux"
193194
194-
Compress-Archive -Path "./artifacts/linux" -DestinationPath "./artifacts/${{ steps.package.outputs.package1 }}" -Force
195-
196-
Expand-Archive -Path "./artifacts/${{ steps.package.outputs.package2 }}" -DestinationPath "./artifacts/osx"
195+
unzip "./artifacts/${{ steps.package.outputs.package2 }}" -d "./artifacts/osx"
197196
chmod +x ./artifacts/osx/azfuncopenapi
198-
199197
ls -al ./artifacts/osx
198+
rm "./artifacts/${{ steps.package.outputs.package2 }}"
199+
zip -r "./artifacts/${{ steps.package.outputs.package2 }}" "./artifacts/osx"
200200
201-
Compress-Archive -Path "./artifacts/osx" -DestinationPath "./artifacts/${{ steps.package.outputs.package2 }}" -Force
201+
ls -al ./artifacts
202202
203203
- name: Create Release to GitHub
204204
id: ghrelease

0 commit comments

Comments
 (0)