Skip to content

Commit 8e0fb8e

Browse files
Fix Nuget workflow (#264)
1 parent 74abd24 commit 8e0fb8e

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

.github/workflows/nuget.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,27 @@
1-
# This is a basic workflow to help you get started with Actions
1+
name: Nuget CD
22

3-
name: Nuget
4-
5-
# Controls when the workflow will run
63
on:
74
# Allows you to run this workflow manually from the Actions tab
85
workflow_dispatch:
6+
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
7+
release:
8+
types: [published]
99

10-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1110
jobs:
12-
# This workflow contains a single job called "build"
1311
build:
14-
# The type of runner that the job will run on
1512
runs-on: ubuntu-latest
16-
17-
# Steps represent a sequence of tasks that will be executed as part of the job
1813
steps:
19-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2014
- uses: actions/checkout@v3
21-
with:
22-
ref: 'v0.6.0'
23-
24-
# Deploy NuGet so we can call the pack and push cmds
25-
- name: Setup NuGet.exe for use with actions
26-
uses: NuGet/setup-nuget@v1.0.7
15+
- name: Setup NuGet
16+
uses: NuGet/setup-nuget@v1
2717
with:
2818
nuget-api-key: ${{ secrets.nuget_api_key }}
2919

30-
# Package the nusepc file
3120
- name: Create NuGet pkg
3221
working-directory: ./nuget
3322
run: nuget pack jwt-cpp.nuspec
3423

35-
# Publish nuget pkg
3624
- name: Publish NuGet pkg
3725
working-directory: ./nuget
3826
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json'
39-
27+

nuget/jwt-cpp.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>jwt-cpp</id>
5-
<version>0.6.0-dev0.2</version>
5+
<version>0.6.0-nuget.3</version>
66
<authors>Thalhammer; prince-chrismc</authors>
77
<owners>Thalhammer; prince-chrismc</owners>
88
<projectUrl>https://github.com/Thalhammer/jwt-cpp</projectUrl>

0 commit comments

Comments
 (0)