Add automatic flatpak version bumping logic

This now bumps the version number in de.wger.flutter.metainfo.xml, which is
something we were not doing before...
This commit is contained in:
Roland Geider
2025-06-06 13:52:07 +02:00
parent b199618822
commit fb6579d819
4 changed files with 148 additions and 14 deletions

View File

@@ -21,6 +21,9 @@ jobs:
- name: Common flutter setup
uses: ./.github/actions/flutter-common
- name: Setup uv
uses: astral-sh/setup-uv@v5
- name: Validate version
run: |
RELEASE_VERSION="${{ inputs.app_version }}"
@@ -39,11 +42,16 @@ jobs:
NEXT_BUILD=$(( (CURRENT_BUILD / 10 + 1) * 10 ))
flutter pub run cider version ${{ inputs.app_version }}+${NEXT_BUILD}
- name: Bump flatpak version
run: |
cd flatpak
uv run bump-flatpak-version.py ${{ inputs.app_version }}
- name: Tag release and commit pubspec
run: |
git config user.name Github-Actions
git config user.email github-actions@github.com
git add pubspec.yaml
git commit -m "Bump version to $( flutter pub run cider version )"
git add pubspec.yaml flatpak/de.wger.flutter.metainfo.xml
git commit -m "Bump version to ${{ inputs.app_version }}"
git tag ${{ inputs.app_version }}
git push origin HEAD:master --tags

View File

@@ -138,6 +138,7 @@ jobs:
- name: Make Github release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
tag_name: ${{ inputs.version }}
files: |
builds-aab/app-release.aab