Skip to content

Commit

Permalink
Auto-publish to NuGet on release
Browse files Browse the repository at this point in the history
  • Loading branch information
tjhorner committed May 28, 2021
1 parent beb30df commit 2cc4205
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish to NuGet
on:
release:
types: [ created ]

jobs:
build-publish:
name: Build and Publish
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.6
- name: Pack .nupkg
run: dotnet pack -c Release -o dist
- name: Publish to NuGet
run: dotnet nuget push dist\* --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
2 changes: 1 addition & 1 deletion OVRSharp/OVRSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Product>OVRSharp</Product>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 2cc4205

Please sign in to comment.