Skip to content
name: Publish csharp-ws package
on:
release:
types: [created]
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: data-api/csharp-ws
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Dotnet restore
run: dotnet restore
- name: Dotnet build
run: dotnet build
- name: Publish Nuget
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json || exit 0