Skip to content

Commit

Permalink
Build changelog based on commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Xpl0itU authored and V10lator committed Sep 20, 2023
1 parent 55e4caa commit 735e7da
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/master.yml
Expand Up @@ -96,6 +96,15 @@ jobs:
name: NUSspli-${{ steps.version.outputs.version }}-HBL-DEBUG
path: out/HBL-DEBUG/*
if-no-files-found: error
- name: Get previous tag
run: echo "previous_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo '')" >> $GITHUB_ENV
- name: Generate changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
if: ${{ env.previous_tag && startsWith(github.event.head_commit.message, 'v') && contains(github.event.head_commit.message, '.') && !endsWith(github.event.head_commit.message, '.') && !contains(github.event.head_commit.message, '-ALPHA') && !contains(github.event.head_commit.message, '-BETA') }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
filter: 'v\d+\.\d+(-ALPHA|-BETA)?'
- name: Publish release
if: ${{ startsWith(github.event.head_commit.message, 'v') && contains(github.event.head_commit.message, '.') && !endsWith(github.event.head_commit.message, '.') && !contains(github.event.head_commit.message, '-ALPHA') && !contains(github.event.head_commit.message, '-BETA') }}
uses: ncipollo/release-action@v1
Expand All @@ -105,9 +114,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
artifactErrorsFailBuild: true
artifactContentType: application/zip
body: |
Improvements to stability and usability:
Further improvements to overall stability and other minor adjustments have been made to enhance the user experience.
body: ${{ steps.changelog.outputs.changelog }}
artifacts: |
zips/NUSspli-${{ steps.version.outputs.version }}-Aroma.zip
zips/NUSspli-${{ steps.version.outputs.version }}-Aroma-DEBUG.zip
Expand Down

0 comments on commit 735e7da

Please sign in to comment.