diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml new file mode 100644 index 0000000..527495b --- /dev/null +++ b/.github/workflows/nuget.yml @@ -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 \ No newline at end of file diff --git a/OVRSharp/OVRSharp.csproj b/OVRSharp/OVRSharp.csproj index 9efef5b..926251a 100644 --- a/OVRSharp/OVRSharp.csproj +++ b/OVRSharp/OVRSharp.csproj @@ -13,7 +13,7 @@ false true OVRSharp - 1.0.1 + 1.0.2