Skip to content

Commit

Permalink
Set version on build windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Brennan1994 authored Sep 11, 2024
1 parent 7360f15 commit 28c1e41
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,13 @@ jobs:
echo "VERSION=$VERSION" >> $env:GITHUB_ENV
- name: Build for Windows x64
run: dotnet publish ${{ env.PROJECT_NAME }} -c Release -r win-x64 --self-contained -p:PublishAot=true /p:PackageVersion=${{ env.VERSION }}
run: dotnet publish ${{ env.PROJECT_NAME }} -c Release -r win-x64 --self-contained -p:PublishAot=true /p:Version=${{ env.VERSION }}

- name: Pack NuGet packages
run: dotnet pack ${{ env.PROJECT_NAME }} -c Release /p:PackageVersion=${{ env.VERSION }}
run: dotnet pack ${{ env.PROJECT_NAME }} -c Release /p:PackageVersion=${{ env.VERSION }}

- name: Publish NuGet packages to GitHub Packages
run: dotnet nuget push **/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate

- name: Upload Windows build artifact
uses: actions/upload-artifact@v4
with:
name: USACE.HEC.Consequences-${{ env.VERSION }}-windows-x64
path: ./Consequences/bin/Release/net8.0/win-x64/native/

- name: Zip Release Package
shell: pwsh
Expand Down

0 comments on commit 28c1e41

Please sign in to comment.