From 1ae4dca5463bbfbefcf2a704dc7abf2ade5dad92 Mon Sep 17 00:00:00 2001 From: Runar Ovesen Hjerpbakk Date: Wed, 23 Oct 2019 09:51:27 +0200 Subject: [PATCH] Created a separate workflow to do NuGet releases, #4 (#7) --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1b876d3 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release + +on: + push: + branches: + - master + +jobs: + build_test_release: + + runs-on: macOS-latest + + steps: + - name: Setup .NET Core + uses: actions/setup-dotnet@v1.2.0 + with: + dotnet-version: 3.0.100 + - uses: actions/checkout@v1 + - name: Build and test + run: | + chmod +x ci.sh + ./ci.sh + shell: bash + - name: Publish to NuGet + run: | + chmod +x pack.sh + ./pack.sh + nuget push ./nupkgs/*.nupkg -ApiKey ${{ secrets.NUGET_KEY }} + shell: bash