From 25204dd267775fc94d650074708bdc20085c7a33 Mon Sep 17 00:00:00 2001 From: Brennan Beam <64556723+Brennan1994@users.noreply.github.com> Date: Tue, 27 Aug 2024 23:39:35 -0700 Subject: [PATCH] zip and upload --- .github/workflows/Release.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index bb37ac3..1c196cf 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -42,11 +42,16 @@ jobs: name: USACE.HEC.Consequences-${{ env.VERSION }}-windows-x64 path: ./Consequences/bin/Release/net8.0/win-x64/native/ - - name: upload windows artifact + - name: Zip Windows artifact + run: | + cd ./Consequences/bin/Release/net8.0/win-x64/native/ + zip -r USACE.HEC.Consequences-${{ env.VERSION }}-windows-x64.zip + + - name: upload artifact to release uses: actions/upload-release-asset@v1.0.2 with: upload_url: ${{ github.event.release.upload_url }} - asset_path: ./Consequences/bin/Release/net8.0/win-x64/native/ + asset_path: ./Consequences/bin/Release/net8.0/win-x64/native/USACE.HEC.Consequences-${{ env.VERSION }}-windows-x64.zip asset_name: USACE.HEC.Consequences-${{ env.VERSION }}-windows-x64 asset_content_type: application/zip @@ -83,12 +88,17 @@ jobs: with: name: USACE.HEC.Consequences-${{ env.VERSION }}-linux-x64 path: ./Consequences/bin/Release/net8.0/linux-x64/native/ - - - name: upload windows artifact + + - name: Zip Linux artifact + run: | + cd ./Consequences/bin/Release/net8.0/linux-x64/native/ + zip -r USACE.HEC.Consequences-${{ env.VERSION }}-linux-x64.zip + + - name: upload artifact to release uses: actions/upload-release-asset@v1.0.2 with: upload_url: ${{ github.event.release.upload_url }} - asset_path: ./Consequences/bin/Release/net8.0/linux-x64/native/ + asset_path: ./Consequences/bin/Release/net8.0/linux-x64/native/USACE.HEC.Consequences-${{ env.VERSION }}-linux-x64.zip asset_name: USACE.HEC.Consequences-${{ env.VERSION }}-linux-x64 asset_content_type: application/zip