Skip to content

Commit 3208da2

Browse files
upload tar.gz for new releases
1 parent 953aab6 commit 3208da2

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed
Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Nuget CD
1+
name: Release CD
22

33
on:
44
# Allows you to run this workflow manually from the Actions tab
@@ -8,10 +8,10 @@ on:
88
types: [published]
99

1010
jobs:
11-
build:
11+
nuget:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- name: Setup NuGet
1616
uses: NuGet/setup-nuget@v1
1717
with:
@@ -24,4 +24,18 @@ jobs:
2424
- name: Publish NuGet pkg
2525
working-directory: ./nuget
2626
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json'
27+
28+
release-asset:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
# steps for building assets
34+
- run: tar -czf jwt-cpp-${{ github.event.release.tag_name }}.tar.gz .
35+
36+
37+
- uses: shogo82148/actions-upload-release-asset@v1
38+
with:
39+
upload_url: ${{ github.event.release.upload_url }}
40+
asset_path: assets.txt
2741

0 commit comments

Comments
 (0)