mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
chore(release): Automate changelog generation for pre-releases
This commit introduces a new step in the release workflow to automatically generate a changelog file for pre-releases (closed and open testing tracks).
The changelog file will contain a link to the GitHub release notes for detailed information.
Additionally, the GitHub release is no longer created as a draft.
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
(cherry picked from commit 71e7c6b7e9)
This commit is contained in:
parent
5ee5599983
commit
20063e8252
1 changed files with 10 additions and 1 deletions
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
|
|
@ -105,6 +105,15 @@ jobs:
|
|||
ruby-version: '3.2'
|
||||
bundler-cache: true
|
||||
|
||||
- name: Generate Changelog for Pre-Releases
|
||||
if: contains(github.ref_name, '-closed') || contains(github.ref_name, '-open')
|
||||
env:
|
||||
APP_VERSION_CODE: ${{ needs.prepare-build-info.outputs.APP_VERSION_CODE }}
|
||||
run: |
|
||||
CHANGELOG_PATH="./fastlane/metadata/android/en-US/changelogs/${APP_VERSION_CODE}.txt"
|
||||
echo "For a detailed list of changes, please see the GitHub release notes:" > $CHANGELOG_PATH
|
||||
echo "https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}" >> $CHANGELOG_PATH
|
||||
|
||||
- name: Determine Fastlane Lane
|
||||
id: fastlane_lane
|
||||
run: |
|
||||
|
|
@ -224,7 +233,7 @@ jobs:
|
|||
./google/bundle/app-google-release.aab
|
||||
./google/apk/app-google-release.apk
|
||||
./fdroid/app-fdroid-release.apk
|
||||
draft: true
|
||||
draft: false
|
||||
prerelease: ${{ contains(github.ref_name, '-internal') || contains(github.ref_name, '-closed') || contains(github.ref_name, '-open') }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue