Skip to content

Commit 5bae744

Browse files
Merge branch 'master' into dev-ux
2 parents ae66c1d + 6e9a24f commit 5bae744

File tree

3 files changed

+44
-30
lines changed

3 files changed

+44
-30
lines changed

.github/workflows/cross-platform.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
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

.github/workflows/nuget.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

0 commit comments

Comments
 (0)