From 314b0edf84a136929f9bf18a4f23659e61fc912e Mon Sep 17 00:00:00 2001 From: MartinDotNet Date: Wed, 15 Nov 2023 19:57:28 +0000 Subject: [PATCH] Made sample not packable and added version --- .github/workflows/release.yml | 2 +- sample/sample.csproj | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0a4806..473d980 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,6 @@ jobs: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - run: dotnet build --configuration Release - name: Create the package - run: dotnet pack --configuration Release -o artifacts /p:Version= + run: dotnet pack --configuration Release -o artifacts /p:Version=${{ github.ref_name }} - name: Publish the package to GPR run: dotnet nuget push artifacts/*.nupkg diff --git a/sample/sample.csproj b/sample/sample.csproj index 171b5eb..625a2ed 100644 --- a/sample/sample.csproj +++ b/sample/sample.csproj @@ -4,6 +4,7 @@ net8.0 enable enable + false