Skip to content

Commit

Permalink
feat(ci): extract changelog for release
Browse files Browse the repository at this point in the history
  • Loading branch information
growse committed Sep 20, 2024
1 parent 8342dc5 commit 456f4f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,17 @@ jobs:
ANDROID_PUBLISHER_CREDENTIALS: ${{ secrets.GOOGLE_CLOUD_SERVICE_ACCOUNT_CREDENTIALS }}
run: ./project/gradlew -p project assembleRelease --scan

- name: Extract changelog
run: awk '/^## / { if (p) {exit}; { p=1; next} } p' CHANGELOG.md > this_release_changelog.md

- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
body_path: ./CHANGELOG.md
body_path: ./this_release_changelog.md
name: ${{ github.ref_name }}
draft: true
prerelease: ${{ contains(github.ref_name, 'beta') }}
Expand Down

0 comments on commit 456f4f8

Please sign in to comment.