Skip to content

Commit

Permalink
Merge pull request #18 from picoe/curtis/nuget-publish
Browse files Browse the repository at this point in the history
Add nuget publish job
  • Loading branch information
cwensley authored Jun 7, 2020
2 parents 3985aa4 + 55fd1aa commit 0a17bae
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
create:
tags: [ '*' ]
release:
type: published

env:
BuildVersion: "CI.${{ github.run_id }}"
Expand Down Expand Up @@ -91,3 +91,21 @@ jobs:
# with:
# name: nuget
# path: artifacts/nuget/**/Eto.Veldrid.XamMac2.nupkg

publish:
needs: [ build-windows, build-mac ]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}}

- name: Download NuGet Packages
uses: actions/download-artifact@v1
with:
name: nuget

- name: Push packages
run: dotnet nuget push ./nuget/**/*.nupkg --skip-duplicate

0 comments on commit 0a17bae

Please sign in to comment.