Skip to content

Commit

Permalink
create release on tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brennan1994 committed Aug 29, 2024
1 parent 57c974e commit d60c766
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Publish NuGet Packages

on:
release:
types: [published]
push:
tags:
- "v*.*.*"

env:
Project_Name: Consequences/Consequences.csproj
Expand Down Expand Up @@ -42,13 +43,18 @@ jobs:
name: USACE.HEC.Consequences-${{ env.VERSION }}-windows-x64
path: ./Consequences/bin/Release/net8.0/win-x64/native/

- name: upload artifact to release
uses: actions/[email protected]
- name: Print all file paths
shell: pwsh
run: |
$root_path = Get-Location
Get-ChildItem -Path $root_path -Recurse | Where-Object {!$_.PSIsContainer} | ForEach-Object {
$_.FullName.Replace("$root_path\", "")
}
- name: Release
uses: softprops/action-gh-release@v2
with:
upload_url: ${{ github.event.release.upload_url }}
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
files: |
./Consequences/bin/Release/net8.0/win-x64/native/
build-linux:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d60c766

Please sign in to comment.