Skip to content

Commit

Permalink
chore: also publish to nuget.org (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
omercnet committed May 29, 2024
1 parent a86bb67 commit 2d9c0f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ jobs:
run: dotnet pack --configuration Release ${{ env.PACKAGE_NAME }}
- name: Publish the package to GPR
run: dotnet nuget push ${{ env.PACKAGE_NAME }}/bin/Release/*.nupkg
- uses: actions/setup-dotnet@v4
with:
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_ORG_KEY }}
- name: Publish the package to NuGet.org
run: dotnet nuget push ${{ env.PACKAGE_NAME }}/bin/Release/*.nupkg
2 changes: 2 additions & 0 deletions Descope/Descope.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
<VersionPrefix Condition="'$(RELEASE_VERSION)' == ''">0.0.1</VersionPrefix>
<VersionSuffix Condition="'$(RELEASE_VERSION)' == ''">$([System.DateTime]::UtcNow.ToString(`yyyyMMdd-HHmm`))</VersionSuffix>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup>

<ItemGroup>
<None Include="../README.md" Pack="true" PackagePath="\" />
<None Include="../LICENSE" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 2d9c0f7

Please sign in to comment.