From 4d0c4f8d982a79ce76d163b9a9601688d9c33fcb Mon Sep 17 00:00:00 2001 From: Brennan Beam <64556723+Brennan1994@users.noreply.github.com> Date: Tue, 27 Aug 2024 22:50:38 -0700 Subject: [PATCH] set version on build --- .github/workflows/Release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 843e8de..874f588 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -11,7 +11,6 @@ jobs: build-windows: runs-on: windows-latest - steps: - name: Checkout repository uses: actions/checkout@v4.1.7 @@ -30,7 +29,7 @@ jobs: echo "VERSION=${VERSION}" >> $GITHUB_ENV - name: Build for Windows x64 - run: dotnet publish ${{ env.PROJECT_NAME }} -c Release -r win-x64 --self-contained -p:PublishAot=true + run: dotnet publish ${{ env.PROJECT_NAME }} -c Release -r win-x64 --self-contained -p:PublishAot=true /p:PackageVersion=${{ env.VERSION }} - name: Pack NuGet packages run: dotnet pack ${{ env.PROJECT_NAME }} -c Release /p:PackageVersion=${{ env.VERSION }} @@ -65,7 +64,7 @@ jobs: echo "VERSION=${VERSION}" >> $GITHUB_ENV - name: Build for Linux x64 - run: dotnet publish ${{ env.PROJECT_NAME }} -c Release -r linux-x64 --self-contained -p:PublishAot=true + run: dotnet publish ${{ env.PROJECT_NAME }} -c Release -r linux-x64 --self-contained -p:PublishAot=true /p:PackageVersion=${{ env.VERSION }} - name: Pack NuGet packages run: dotnet pack ${{ env.PROJECT_NAME }} -c Release /p:PackageVersion=${{ env.VERSION }}