Skip to content

Commit

Permalink
Version from github, no more signing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpmorris committed Dec 19, 2024
1 parent 85a2925 commit a21dec8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 0 additions & 3 deletions Source/Lib/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<AssemblyOriginatorKeyFile>MrPMorris.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<DelaySign>true</DelaySign>
</PropertyGroup>

</Project>

0 comments on commit a21dec8

Please sign in to comment.