From 639448166af7967f1a2d6ed72dcd9f8ec384d43d Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Tue, 12 May 2020 11:10:14 -0300 Subject: [PATCH] add publish on tag action to push releases to NuGet --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000000..c23f50bc72 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: Publish Release to NuGet + +on: + push: + tags: + - v* + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1.4.0 + with: + dotnet-version: 3.1.201 + + - name: Build with dotnet + run: ./build.sh --linksources=true --verbosity=verbose + shell: bash + + - name: Publish to NuGet + run: dotnet nuget push packaging/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} + shell: bash