mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
Fix Nuget workflow (#264)
This commit is contained in:
26
.github/workflows/nuget.yml
vendored
26
.github/workflows/nuget.yml
vendored
@@ -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'
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<package>
|
||||
<metadata>
|
||||
<id>jwt-cpp</id>
|
||||
<version>0.6.0-dev0.2</version>
|
||||
<version>0.6.0-nuget.3</version>
|
||||
<authors>Thalhammer; prince-chrismc</authors>
|
||||
<owners>Thalhammer; prince-chrismc</owners>
|
||||
<projectUrl>https://github.com/Thalhammer/jwt-cpp</projectUrl>
|
||||
|
||||
Reference in New Issue
Block a user