Skip to content

Commit

Permalink
ci(workflow): add changelogs automation to GitHub release
Browse files Browse the repository at this point in the history
Implemented automation for generating changelogs during the GitHub release workflow. This enhancement ensures that release notes are automatically generated and included in the release process.
  • Loading branch information
rhenwinch committed Jun 13, 2024
1 parent 5caad98 commit 1629364
Showing 1 changed file with 35 additions and 8 deletions.
43 changes: 35 additions & 8 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,8 @@ jobs:
run: |
set -e
mv app/build/outputs/apk/release/app-release-unsigned-signed.apk flixclusive-release.apk
- name: Delete old pre-release
uses: cb80/delrel@latest
with:
tag: pre-release
token: ${{ secrets.GITHUB_TOKEN }}
sha=`sha256sum flixclusive-release.apk | awk '{ print $1 }'`
echo "RELEASE_SHA=$sha" >> $GITHUB_ENV
- name: Get soon-latest version
run: |
Expand All @@ -71,6 +67,32 @@ jobs:
echo "Version: $version"
echo "VERSION=$version" >> $GITHUB_ENV
- name: Generate changelogs
uses: ardalanamini/auto-changelog@v4
id: changelog
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
commit-types: |
feat: ✨ New Features
fix: 🐛 Bug Fixes
build: 🛠️ Build System & Dependencies
perf: 🚀 Performance Improvements
docs: 📚 Documentation
test: 🧪 Tests
refactor: 🔄 Refactors
chore: 🧹 Chores
ci: ⚙️ CI
style: 🎨 Code Style
revert: ⏪ Reverts
default-commit-type: 📝 Other Changes
semver: false

- name: Delete old pre-release
uses: cb80/delrel@latest
with:
tag: pre-release
token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload pre-release
uses: softprops/action-gh-release@v2
with:
Expand All @@ -81,16 +103,21 @@ jobs:
---
## Known issues
## 🐞 Known issues
- TV focus crashes. Compose TV is bugged af; we wait til the new update.
${{ steps.changelog.outputs.changelog }}
---
### Checksums
| Variant | SHA-256 |
| ------- | ------- |
| release | ${{ env.RELEASE_SHA }} |
files: |
flixclusive-release.apk
app/build/classes.jar
draft: false
prerelease: true
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1629364

Please sign in to comment.