diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml new file mode 100644 index 00000000..8741e65d --- /dev/null +++ b/.github/workflows/nuget.yml @@ -0,0 +1,39 @@ +# This is a basic workflow to help you get started with Actions + +name: Nuget + +# Controls when the workflow will run +on: + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# 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 + 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 new file mode 100644 index 00000000..d7a8d345 --- /dev/null +++ b/nuget/jwt-cpp.nuspec @@ -0,0 +1,29 @@ + + + + jwt-cpp + 0.6.0-dev0.2 + Thalhammer; prince-chrismc + Thalhammer; prince-chrismc + https://github.com/Thalhammer/jwt-cpp + JWT++ is a header only library for creating and validating JSON Web Tokens in C++11. This library supports all the algorithms defined by the JWT specifications, and the modular design allows to easily add additional algorithms without any problems. In the name of flexibility and extensibility, jwt-cpp supports OpenSSL, LibreSSL, and wolfSSL. And there is no hard dependency on a JSON library. + + Supporting OpenSSL 3.0.0, WolfSSL, Hunter CMake, Boost.JSON, JWKs, ES256K. + MIT + Copyright (c) 2018 Dominik Thalhammer + JWT++: JSON Web Tokens in C++11 + JWT++; a header only library for creating and validating JSON Web Tokens in C++11. + JWT, json, web, token, C++, header-only + + + + + + + + + + + + + diff --git a/nuget/jwt-cpp.targets b/nuget/jwt-cpp.targets new file mode 100644 index 00000000..a40f2b30 --- /dev/null +++ b/nuget/jwt-cpp.targets @@ -0,0 +1,8 @@ + + + + + $(MSBuildThisFileDirectory)..\..\lib\native\include\;%(AdditionalIncludeDirectories) + + + \ No newline at end of file