Skip to content

Commit

Permalink
Merge branch 'master' into bump-ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc authored Jan 17, 2024
2 parents 723a2d2 + 6e9a24f commit f69c9d7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:

jobs:
nuget:
if: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,20 +26,19 @@ jobs:
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json'

release-asset:
if: github.event_name != 'workflow_dispatch'
runs-on: ubuntu-latest
env:
NAME: jwt-cpp-${{ github.event.release.tag_name }}
steps:
- uses: actions/checkout@v4

- run: tar -czf /tmp/$NAME.tar.gz .
- run: tar --exclude='./.git' -vczf /tmp/jwt-cpp-${{ github.event.release.tag_name }}.tar.gz .
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: /tmp/$NAME.tar.gz
asset_path: /tmp/jwt-cpp-${{ github.event.release.tag_name }}.tar.gz

- run: zip -r /tmp/$NAME.zip .
- run: zip -x './.git/*' -r /tmp/jwt-cpp-${{ github.event.release.tag_name }}.zip .
- uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: /tmp/$NAME.zip
asset_path: /tmp/jwt-cpp-${{ github.event.release.tag_name }}.zip

0 comments on commit f69c9d7

Please sign in to comment.