Skip to content

Commit

Permalink
#26 when using Windows as runner, use Compress-Archive instead of zip
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Hannebauer committed Jun 26, 2024
1 parent afbcc68 commit cd325d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release-framework.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ jobs:
# Now we do not have the ZIP anymore, so we must re-zip the extracted exe
- name: ZIP EXE for download
run: zip --junk-paths scepclient-framework-win-x64 publish/scepclient-win-x64/*.exe publish/scepclient-win-x64/*.exe.config publish/scepclient-win-x64/*.dll

run: |
Compress-Archive -Path publish/scepclient-win-x64/*.exe, publish/scepclient-win-x64/*.exe.config, publish/scepclient-win-x64/*.dll -DestinationPath scepclient-framework-win-x64.zip -Force
- name: Create tag
id: create_tag
run: |
tag=$(date +"%Y%m%d-%H%M-framework")
$tag=$(date +"%Y%m%d-%H%M-framework")
echo "::set-output name=tag::$tag"
- name: Create Draft Release
Expand All @@ -79,11 +80,6 @@ jobs:
prerelease: false

# Some debug output
- name: "[Debug] Where Are We"
run: pwd
- name: "[Debug] List Files"
run: ls -Rs

- name: Upload Artifacts to Release
uses: actions/upload-release-asset@v1.0.2
env:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release-linux-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,15 @@ jobs:
--azure-key-vault-certificate "glueckkanja-ag-202311" `
--timestamp-rfc3161 "http://timestamp.digicert.com" `
publish/scepclient-linux-x64/ScepClient
# Now we do not have the ZIP anymore, so we must re-zip the extracted exe
- name: ZIP EXE for download
run: zip --junk-paths scepclient-core-linux-x64 publish/scepclient-linux-x64/ScepClient
run: Compress-Archive -Path publish/scepclient-win-x64/ScepClient -DestinationPath scepclient-core-linux-x64.zip -Force

- name: Create tag
id: create_tag
run: |
tag=$(date +"%Y%m%d-%H%M-linux-core")
$tag=$(date +"%Y%m%d-%H%M-linux-core")
echo "::set-output name=tag::$tag"
- name: Create Draft Release
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-windows-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ jobs:
# Now we do not have the ZIP anymore, so we must re-zip the extracted exe
- name: ZIP EXE for download
run: zip --junk-paths scepclient-core-win-x64 publish/scepclient-win-x64/ScepClient.exe
run: Compress-Archive -Path publish/scepclient-win-x64/ScepClient.exe -DestinationPath scepclient-core-win-x64.zip -Force

- name: Create tag
id: create_tag
run: |
tag=$(date +"%Y%m%d-%H%M-windows-core")
$tag=$(date +"%Y%m%d-%H%M-windows-core")
echo "::set-output name=tag::$tag"
- name: Create Draft Release
Expand Down

0 comments on commit cd325d4

Please sign in to comment.