Skip to content

Commit

Permalink
zip and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Brennan1994 committed Aug 28, 2024
1 parent 8295dd3 commit 25204dd
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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

Expand Down Expand Up @@ -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/[email protected]
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

0 comments on commit 25204dd

Please sign in to comment.