mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
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:
12
.github/workflows/bump-version.yml
vendored
12
.github/workflows/bump-version.yml
vendored
@@ -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
|
||||
|
||||
1
.github/workflows/make-release.yml
vendored
1
.github/workflows/make-release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user