From 32a6d0de4b1bc4ddb8bc6a5ed33fe7d2a8dbe886 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 28 May 2021 07:24:47 -0500 Subject: [PATCH] Package the files using tar and 7z --- .github/workflows/ci.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3511ed..3db2078 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,19 +62,15 @@ jobs: # Package Release - - name: TarGZ MacOS and Linux - if: github.event_name == 'release' && !contains(matrix.os, 'windows') && contains(matrix.dc, 'ldc') - uses: thedoctor0/zip-release@0.4.2 - with: - filename: dcd.tar.gz - path: "dcd-client dcd-server" - - - name: Zip Windows - if: github.event_name == 'release' && contains(matrix.os, 'windows') && contains(matrix.dc, 'ldc') - uses: thedoctor0/zip-release@0.4.2 - with: - filename: dcd.zip - path: "dcd-client.exe dcd-server.exe" + - name: Package the artificats + if: github.event_name == 'release' && contains(matrix.dc, 'ldc') + shell: pwsh + run: | + if ("${{ matrix.os }}" -like 'windows*') { + 7z a -tzip dcd.zip dcd-client.exe dcd-server.exe + } else { + tar -cvzf dcd.tar.gz dcd-client dcd-server + } # Release