Skip to content

Commit 2cc4205

Browse files
committed
Auto-publish to NuGet on release
1 parent beb30df commit 2cc4205

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/nuget.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to NuGet
2+
on:
3+
release:
4+
types: [ created ]
5+
6+
jobs:
7+
build-publish:
8+
name: Build and Publish
9+
runs-on: windows-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up .NET
13+
uses: actions/setup-dotnet@v1
14+
with:
15+
dotnet-version: 5.0.6
16+
- name: Pack .nupkg
17+
run: dotnet pack -c Release -o dist
18+
- name: Publish to NuGet
19+
run: dotnet nuget push dist\* --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json

OVRSharp/OVRSharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
1414
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1515
<Product>OVRSharp</Product>
16-
<Version>1.0.1</Version>
16+
<Version>1.0.2</Version>
1717
</PropertyGroup>
1818

1919
<ItemGroup>

0 commit comments

Comments
 (0)