Skip to content

Commit

Permalink
use GitHub CLI to create GH release
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-hodgson authored Oct 21, 2022
1 parent 837c748 commit 2d34bfe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,12 @@ jobs:
dotnet nuget push 'nupkgs/*' --source https://nuget.pkg.github.com/benjamin-hodgson/index.json -k ${{ github.token }}
- name: Get most recent section from changelog
run: cat CHANGELOG.md | sed -r '1,/^-+$/d' | sed -r '/^-+$/q' | head -n -2 | tee release-notes.md
run: tee release-notes.md

- name: Create Github Release
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14
if: github.ref_type == 'tag'
with:
files: nupkgs/*
body_path: release-notes.md
# get most recent section of changelog for release notes
run: cat CHANGELOG.md | sed -r '1,/^-+$/d' | sed -r '/^-+$/q' | head -n -2 | gh release create $GITHUB_REF_NAME ./nupkgs/* -F -
env:
GITHUB_TOKEN: ${{ github.token }}

Expand Down

0 comments on commit 2d34bfe

Please sign in to comment.