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