Skip to content

Commit

Permalink
Include a changelog file which will be part of the release body when …
Browse files Browse the repository at this point in the history
…GitHub workflow is triggered. Add-on SHA256 sum will always be printed at the end of the file
  • Loading branch information
jmdaweb committed Oct 6, 2024
1 parent 4cef57d commit d541201
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ jobs:
uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -R
- name: Calculate sha256
run: sha256sum packaged_addon/*.nvda-addon >> changelog.md

- name: Release
uses: softprops/action-gh-release@v1
with:
files: packaged_addon/*.nvda-addon
body_path: changelog.md
fail_on_unmatched_files: true
prerelease: ${{ contains(github.ref, '-') }}
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Use this file to explain what has changed in your add-on since the previous release. This will be included automatically in the release description when used with GitHub actions.

Don't modify the following line, unless you also remove SHA256 sum calculation from the workflow. This line must be the last one in the file.

SHA256:

0 comments on commit d541201

Please sign in to comment.