Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 6 additions & 24 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,10 @@ jobs:
--api-key "$NUGET_AUTH_TOKEN" \
--skip-duplicate

- name: Generate release notes
shell: pwsh
run: >-
./scripts/generate-release-notes.ps1
-Tag "${{ github.ref_name }}"
-Repository "${{ github.repository }}"
-OutputPath "artifacts/release-notes.md"

- name: Create or update GitHub Release
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
package="artifacts/packages/Darp.DLL.SerialPortStream.Native.${{ needs.version.outputs.value }}.nupkg"
if gh release view "$GITHUB_REF_NAME" >/dev/null 2>&1; then
gh release edit "$GITHUB_REF_NAME" \
--title "$GITHUB_REF_NAME" \
--notes-file "artifacts/release-notes.md"
gh release upload "$GITHUB_REF_NAME" "$package" --clobber
else
gh release create "$GITHUB_REF_NAME" "$package" \
--verify-tag \
--title "$GITHUB_REF_NAME" \
--notes-file "artifacts/release-notes.md"
fi
uses: softprops/action-gh-release@c12583777ecdfd3be55c69cf75464299dc01057e # v3
with:
name: ${{ github.ref_name }}
generate_release_notes: true
files: artifacts/packages/Darp.DLL.SerialPortStream.Native.${{ needs.version.outputs.value }}.nupkg
fail_on_unmatched_files: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ git push origin v1.2.3
The tag must match `vMAJOR.MINOR.PATCH`. The publishing workflow removes the
leading `v`, passes the resulting version to the existing build workflow, and
publishes only after the package tests pass on Linux x64 and arm64. It also
creates a GitHub Release, generates its sections from conventional commits
since the preceding version tag, and attaches the `.nupkg`.
uses GitHub's generated release notes to create a GitHub Release and attaches
the `.nupkg`.

## Updating upstream

Expand Down
120 changes: 0 additions & 120 deletions scripts/generate-release-notes.ps1

This file was deleted.