Skip to content

Commit

Permalink
Merge pull request #1029 from fhammerschmidt/release-notes-from-chang…
Browse files Browse the repository at this point in the history
…elog-v2

CI: Reuse changelog entries for release notes
  • Loading branch information
fhammerschmidt authored Jul 9, 2024
2 parents 02eea46 + 5c942b6 commit b105c20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,18 @@ jobs:
name: "Latest master"
files: rescript-vscode-latest-master.vsix

- name: Generate release notes from changelog
if: startsWith(github.ref, 'refs/tags/')
run: |
sed -e "/^## ${{ steps.tag_name.outputs.tag }}/,/^## / ! d" CHANGELOG.md | head -n -2 > RELEASE.md
- name: Publish release version to GitHub
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
generate_release_notes: true
body_path: RELEASE.md
name: ${{ steps.tag_name.outputs.tag }}
files: rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix

Expand Down

0 comments on commit b105c20

Please sign in to comment.