From 8e0fb8e438445fb97f2316007d17175aa426a4dc Mon Sep 17 00:00:00 2001 From: Chris Mc Date: Wed, 19 Oct 2022 12:56:05 -0700 Subject: [PATCH] Fix Nuget workflow (#264) --- .github/workflows/nuget.yml | 26 +++++++------------------- nuget/jwt-cpp.nuspec | 2 +- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 8741e65..03d5776 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -1,39 +1,27 @@ -# This is a basic workflow to help you get started with Actions +name: Nuget CD -name: Nuget - -# Controls when the workflow will run on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: + # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release + release: + types: [published] -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" build: - # The type of runner that the job will run on runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - with: - ref: 'v0.6.0' - - # Deploy NuGet so we can call the pack and push cmds - - name: Setup NuGet.exe for use with actions - uses: NuGet/setup-nuget@v1.0.7 + - name: Setup NuGet + uses: NuGet/setup-nuget@v1 with: nuget-api-key: ${{ secrets.nuget_api_key }} - # Package the nusepc file - name: Create NuGet pkg working-directory: ./nuget run: nuget pack jwt-cpp.nuspec - # Publish nuget pkg - name: Publish NuGet pkg working-directory: ./nuget run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' - \ No newline at end of file + diff --git a/nuget/jwt-cpp.nuspec b/nuget/jwt-cpp.nuspec index d7a8d34..26957cb 100644 --- a/nuget/jwt-cpp.nuspec +++ b/nuget/jwt-cpp.nuspec @@ -2,7 +2,7 @@ jwt-cpp - 0.6.0-dev0.2 + 0.6.0-nuget.3 Thalhammer; prince-chrismc Thalhammer; prince-chrismc https://github.com/Thalhammer/jwt-cpp