diff --git a/.github/workflows/BuildPublishPipeline.yml b/.github/workflows/BuildPublishPipeline.yml index cce4e06..8e03e43 100644 --- a/.github/workflows/BuildPublishPipeline.yml +++ b/.github/workflows/BuildPublishPipeline.yml @@ -64,7 +64,7 @@ jobs: # Publish to NuGet.org Registry # https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-push - name: 'Publish to NuGet.org Registry' - if: ${{ env.dopush }} + if: env.dopush == 'true' run: >- dotnet nuget push ${{ github.workspace }}/Publish/*.nupkg --source https://api.nuget.org/v3/index.json @@ -74,7 +74,7 @@ jobs: # Publish to GitHub NuGet Registry # https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-nuget-registry - name: 'Publish to GitHub NuGet Registry' - if: ${{ env.dopush }} + if: env.dopush == 'true' run: >- dotnet nuget push ${{ github.workspace }}/Publish/*.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json @@ -83,13 +83,13 @@ jobs: # Zip the output - name: 'Zip Output' - if: ${{ env.dopush }} + if: env.dopush == 'true' run: 7z a -t7z ./Publish/Utilities.7z ./Publish/* # Create GitHub release # https://github.com/marketplace/actions/automatic-releases - name: 'Create GitHub Release' - if: ${{ env.dopush }} + if: env.dopush == 'true' uses: marvinpinto/action-automatic-releases@latest with: repo_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Sandbox/Sandbox.csproj b/Sandbox/Sandbox.csproj index 54959bf..e58b82c 100644 --- a/Sandbox/Sandbox.csproj +++ b/Sandbox/Sandbox.csproj @@ -1,4 +1,4 @@ - + Exe @@ -6,7 +6,7 @@ - + diff --git a/Utilities/Utilities.csproj b/Utilities/Utilities.csproj index fb64f1d..742e351 100644 --- a/Utilities/Utilities.csproj +++ b/Utilities/Utilities.csproj @@ -1,4 +1,4 @@ - + net7.0 @@ -25,7 +25,7 @@ - + diff --git a/UtilitiesTests/UtilitiesTests.csproj b/UtilitiesTests/UtilitiesTests.csproj index 775dc9e..b2d56a7 100644 --- a/UtilitiesTests/UtilitiesTests.csproj +++ b/UtilitiesTests/UtilitiesTests.csproj @@ -1,4 +1,4 @@ - + net7.0 @@ -24,7 +24,7 @@ - +