File tree Expand file tree Collapse file tree 2 files changed +8
-20
lines changed Expand file tree Collapse file tree 2 files changed +8
-20
lines changed Original file line number Diff line number Diff line change 1
- # This is a basic workflow to help you get started with Actions
1
+ name : Nuget CD
2
2
3
- name : Nuget
4
-
5
- # Controls when the workflow will run
6
3
on :
7
4
# Allows you to run this workflow manually from the Actions tab
8
5
workflow_dispatch :
6
+ # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
7
+ release :
8
+ types : [published]
9
9
10
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
11
10
jobs :
12
- # This workflow contains a single job called "build"
13
11
build :
14
- # The type of runner that the job will run on
15
12
runs-on : ubuntu-latest
16
-
17
- # Steps represent a sequence of tasks that will be executed as part of the job
18
13
steps :
19
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
20
14
- 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
27
17
with :
28
18
nuget-api-key : ${{ secrets.nuget_api_key }}
29
19
30
- # Package the nusepc file
31
20
- name : Create NuGet pkg
32
21
working-directory : ./nuget
33
22
run : nuget pack jwt-cpp.nuspec
34
23
35
- # Publish nuget pkg
36
24
- name : Publish NuGet pkg
37
25
working-directory : ./nuget
38
26
run : nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json'
39
-
27
+
Original file line number Diff line number Diff line change 2
2
<package >
3
3
<metadata >
4
4
<id >jwt-cpp</id >
5
- <version >0.6.0-dev0.2 </version >
5
+ <version >0.6.0-nuget.3 </version >
6
6
<authors >Thalhammer; prince-chrismc</authors >
7
7
<owners >Thalhammer; prince-chrismc</owners >
8
8
<projectUrl >https://github.com/Thalhammer/jwt-cpp</projectUrl >
You can’t perform that action at this time.
0 commit comments