From a21dec851847babc7ec1bf7b39b2bd1ffc62ed1e Mon Sep 17 00:00:00 2001 From: Peter Morris Date: Thu, 19 Dec 2024 10:41:32 +0000 Subject: [PATCH] Version from github, no more signing --- .github/workflows/release.yml | 7 +++++-- Source/Lib/Directory.Build.props | 3 --- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de5cd78..58e5090 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,9 +12,12 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: '9.x' + - name: Build - run: dotnet build --configuration Release + run: dotnet build --configuration Release -p:Version=${{ github.event.release.tag_name }} -p:AssemblyVersion=${{ github.event.release.tag_name }} -p:FileVersion=${{ github.event.release.tag_name }} + - name: Pack - run: dotnet pack --configuration Release --no-build -p:PackageVersion=${{ github.event.release.tag_name }} -o ./artifacts + run: dotnet pack --configuration Release --no-build -p:Version=${{ github.event.release.tag_name }} -p:AssemblyVersion=${{ github.event.release.tag_name }} -p:FileVersion=${{ github.event.release.tag_name }} -o ./artifacts + - name: Push to NuGet run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json diff --git a/Source/Lib/Directory.Build.props b/Source/Lib/Directory.Build.props index 2cf3082..8ac63b9 100644 --- a/Source/Lib/Directory.Build.props +++ b/Source/Lib/Directory.Build.props @@ -24,9 +24,6 @@ true - MrPMorris.snk - true - true \ No newline at end of file