Skip to content

Commit

Permalink
Moved nuget metadata into csproj file and updated nuget publish actio…
Browse files Browse the repository at this point in the history
…n to set copyright year dynamically.
  • Loading branch information
brianpursley committed Jun 17, 2023
1 parent b9f7503 commit ab09c06
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nuget_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.after }} # This checks out the commit that triggered the workflow run
ref: ${{ github.ref }} # This checks out the commit that triggered the workflow run

- name: Setup .NET
uses: actions/setup-dotnet@v1
Expand All @@ -33,7 +33,7 @@ jobs:
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}

- name: Pack
run: dotnet pack --no-build --configuration Release /p:PackageVersion=${{ steps.get_version.outputs.VERSION }} --output out
run: dotnet pack --no-build --configuration Release /p:PackageVersion=${{ steps.get_version.outputs.VERSION }} /p:CopyrightYear=$(date +%Y) --output out

- name: Push
run: dotnet nuget push "out/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
25 changes: 0 additions & 25 deletions Cinlogic.Sync/.nuspec

This file was deleted.

10 changes: 10 additions & 0 deletions Cinlogic.Sync/Cinlogic.Sync.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
<PackageId>Cinlogic.Sync</PackageId>
<Authors>Brian Pursley</Authors>
<Company>Cinlogic LLC</Company>
<PackageProjectUrl>https://github.com/brianpursley/Cinlogic.Sync</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>Copyright © $(CopyrightYear) Cinlogic LLC</Copyright>
<Version>0.0.0</Version>
<Description>Cinlogic.Sync provides an easy way to ensure an action or function is executed only once in a multi-threaded environment. It is inspired by Go's sync.Once type.</Description>
<RepositoryUrl>https://github.com/brianpursley/Cinlogic.Sync</RepositoryUrl>
<PackageTags>Sync Once Threading</PackageTags>
</PropertyGroup>

</Project>

0 comments on commit ab09c06

Please sign in to comment.