Skip to content

Commit

Permalink
Add release notes to the body of the create release action
Browse files Browse the repository at this point in the history
  • Loading branch information
frankgrimy committed Sep 28, 2024
1 parent 8ca712a commit c4ca733
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,21 @@ jobs:

- name: Compress files as zip
run: zip -r Launchkey-Mini-MK3-FLStudio-${{ github.ref_name }}.zip . -x .git/\* .github/\* .gitignore README.md Info/\*


- name: Read release notes
id: read_release_notes
uses: actions/github-script@v4
with:
script: |
const fs = require('fs');
const releaseNotes = fs.readFileSync('RELEASE_NOTES.md', 'utf8');
return { releaseNotes };
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: Launchkey-Mini-MK3-FLStudio-${{ github.ref_name }}.zip
body: ${{ steps.read_release_notes.outputs.releaseNotes }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Added initial support for Performance Mode
- Added automatic color detection in multiple contexts

0 comments on commit c4ca733

Please sign in to comment.