File tree Expand file tree Collapse file tree 3 files changed +44
-30
lines changed Expand file tree Collapse file tree 3 files changed +44
-30
lines changed Original file line number Diff line number Diff line change 1313 os : [macos-latest, windows-latest, ubuntu-latest]
1414
1515 steps :
16- # Setup Dependencies
17- - if : matrix.os == 'windows-latest'
18- run : choco install openssl
1916 - if : matrix.os == 'macos-latest'
2017 run : sudo cp /usr/local/opt/openssl@1.1/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/
2118
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Nuget CD
2+
3+ on :
4+ # Allows you to run this workflow manually from the Actions tab
5+ workflow_dispatch :
6+ # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
7+ release :
8+ types : [published]
9+
10+ jobs :
11+ nuget :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ - name : Setup NuGet
16+ uses : NuGet/setup-nuget@v1
17+ with :
18+ nuget-api-key : ${{ secrets.nuget_api_key }}
19+
20+ - name : Create NuGet pkg
21+ working-directory : ./nuget
22+ run : nuget pack jwt-cpp.nuspec
23+
24+ - name : Publish NuGet pkg
25+ working-directory : ./nuget
26+ run : nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json'
27+
28+ release-asset :
29+ if : github.event_name != 'workflow_dispatch'
30+ runs-on : ubuntu-latest
31+ steps :
32+ - uses : actions/checkout@v4
33+
34+ - run : tar --exclude='./.git' -vczf /tmp/jwt-cpp-${{ github.event.release.tag_name }}.tar.gz .
35+ - uses : shogo82148/actions-upload-release-asset@v1
36+ with :
37+ upload_url : ${{ github.event.release.upload_url }}
38+ asset_path : /tmp/jwt-cpp-${{ github.event.release.tag_name }}.tar.gz
39+
40+ - run : zip -x './.git/*' -r /tmp/jwt-cpp-${{ github.event.release.tag_name }}.zip .
41+ - uses : shogo82148/actions-upload-release-asset@v1
42+ with :
43+ upload_url : ${{ github.event.release.upload_url }}
44+ asset_path : /tmp/jwt-cpp-${{ github.event.release.tag_name }}.zip
You can’t perform that action at this time.
0 commit comments