Skip to content

Commit

Permalink
Merge pull request #16 from JoePittsy/JoePittsy-patch-2
Browse files Browse the repository at this point in the history
Update release.yml
  • Loading branch information
JoePittsy authored Oct 26, 2023
2 parents 5b75fff + d630dfc commit 4dcffa1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Publish to NuGet

on:
release:
types: [published]
push:
tags:
- '*'

jobs:
publish:
Expand All @@ -15,11 +16,11 @@ jobs:
- name: Install jq
run: sudo apt-get install jq

- name: Get asset from the release
- name: Get .nupkg asset from the release
run: |
ASSET_URL=$(curl -sH "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/releases/latest" | \
jq -r ".assets[0].browser_download_url")
jq -r '.assets[] | select(.name | endswith(".nupkg")).browser_download_url')
wget $ASSET_URL
- name: Publish to NuGet
Expand Down

0 comments on commit 4dcffa1

Please sign in to comment.