Skip to content

Commit

Permalink
add zipping update linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Brennan1994 committed Aug 29, 2024
1 parent d60c766 commit ca7bc5f
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,18 @@ jobs:
Get-ChildItem -Path $root_path -Recurse | Where-Object {!$_.PSIsContainer} | ForEach-Object {
$_.FullName.Replace("$root_path\", "")
}
- name: Zip Release Package
shell: pwsh
run: |
$root_path = Get-Location
Compress-Archive -Path $root_path/Consequences/bin/Release/net8.0/win-x64/native/ -DestinationPath $root_path/Consequences/bin/Release/net8.0/win-x64/native/USACE.HEC.Consequences-${env:VERSION}-windows-x64.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
./Consequences/bin/Release/net8.0/win-x64/native/
$root_path/Consequences/bin/Release/net8.0/win-x64/native/USACE.HEC.Consequences-${env:VERSION}-windows-x64.zip
build-linux:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -90,11 +97,13 @@ jobs:
name: USACE.HEC.Consequences-${{ env.VERSION }}-linux-x64
path: ./Consequences/bin/Release/net8.0/linux-x64/native/

- 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/USACE.HEC.Consequences-${{ env.VERSION }}-linux-x64.zip
asset_name: USACE.HEC.Consequences-${{ env.VERSION }}-linux-x64
asset_content_type: application/zip
- name: Print all file paths
shell: bash
run: |
find $(pwd) -type f | sed "s|$(pwd)/||"
- name: Zip Release Package
shell: bash
run: |
zip -r ./Consequences/bin/Release/net8.0/linux-x64/native/USACE.HEC.Consequences-${env:VERSION}-linux-x64.zip ./Consequences/bin/Release/net8.0/linux-x64/native/

0 comments on commit ca7bc5f

Please sign in to comment.