Skip to content

Instantly share code, notes, and snippets.

@Rickedb
Created September 18, 2019 02:32
Show Gist options
  • Save Rickedb/be2d23ad48680e90cdc7f3f0fda83dba to your computer and use it in GitHub Desktop.
Save Rickedb/be2d23ad48680e90cdc7f3f0fda83dba to your computer and use it in GitHub Desktop.
name: master
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: Setup .NET Core
uses: actions/setup-dotnet@master
with:
dotnet-version: '3.0.100-rc1-014190'
- name: Build library (.net core)
run: dotnet build src/OpenProtocolInterpreter/OpenProtocolInterpreter.csproj --configuration release
- name: Build and run .net core tests
run: |
dotnet build src/MIDTesters.Core/MIDTesters.Core.csproj
dotnet test src/MIDTesters.Core/MIDTesters.Core.csproj
- name: NuGet setup
uses: warrenbuckley/Setup-Nuget@v1
- name: Publish NuGet Package
run: |
nuget setApiKey ${{ secrets.NUGET_API_KEY }}
nuget push src/OpenProtocolInterpreter/bin/release/OpenProtocolInterpreter.3.0.2.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment