Skip to content

Commit

Permalink
ci: Automate release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
antangelo committed Sep 15, 2024
1 parent 06519e2 commit ff6663c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,19 @@ jobs:
with:
path: out

- name: Checkout source
uses: actions/checkout@v4

# Get latest two tags, reverse order, then get log between those tags
- name: Generate release notes
run: git tag --sort=-version:refname | head -n 2 | tac | sed 'N;s/\n/../' | xargs git log --oneline --no-decorate > ${{ github.workspace }}-changelog.txt

- name: Publish release
uses: softprops/action-gh-release@v1
with:
draft: false
prerelease: false
body_path: ${{ github.workspace }}-changelog.txt
files: |
out/**/*.zip

0 comments on commit ff6663c

Please sign in to comment.