Skip to content

Commit

Permalink
Create nuget_push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cristipufu committed Feb 23, 2022
1 parent 1b667ea commit 7a2f692
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/nuget_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: NuGet Push

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
name: Update NuGet package
steps:

- name: Checkout repository
uses: actions/checkout@v1

- name: Setup .NET Core @ Latest
uses: actions/[email protected]

- name: Build and Publish
run: |
cd ./src/Ninja.WebSocketClient/
dotnet pack -c Release -o artifacts -p:PackageVersion=1.0.${{ github.run_number }}
- name: Push
run: dotnet nuget push ./src/Ninja.WebSocketClient/artifacts/Ninja.WebSocketClient.1.0.${{ github.run_number }}.nupkg -k ${{ secrets.NUGET_APIKEY }} -s https://api.nuget.org/v3/index.json

0 comments on commit 7a2f692

Please sign in to comment.