forked from cristipufu/ninja-websocket-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b667ea
commit 7a2f692
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |