diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c6d255..0bc6c9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -99,6 +99,29 @@ jobs: APK=$(ls artifacts/postiz-mobile/dist/*.apk | sort | tail -1) echo "path=$APK" >> "$GITHUB_OUTPUT" + - name: Generate changelog + id: changelog + run: | + PREV_TAG=$(git tag --sort=-version:refname | grep -v "^${{ github.ref_name }}$" | head -1) + echo "Previous tag: $PREV_TAG" + + FEATS=$(git log "${PREV_TAG}..HEAD" --pretty=format:"%s" --no-merges \ + | grep -E "^feat(\([^)]+\))?: " \ + | sed -E 's/^feat(\([^)]+\))?: //' \ + | sed 's/^/- /') + + FIXES=$(git log "${PREV_TAG}..HEAD" --pretty=format:"%s" --no-merges \ + | grep -E "^fix(\([^)]+\))?: " \ + | sed -E 's/^fix(\([^)]+\))?: //' \ + | sed 's/^/- /') + + { + echo "changelog<> "$GITHUB_OUTPUT" + - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: @@ -106,8 +129,7 @@ jobs: body: | ## Postiz Mobile ${{ github.ref_name }} - Signed APK for Android — direct install (sideload). - + ${{ steps.changelog.outputs.changelog }} ### Installation 1. Enable "Unknown sources" on the device 2. Transfer the APK to the device and open it to install