Skip to content

Commit 6e291f3

Browse files
committed
Fix: Correct macOS release build and update versioning
The macOS release build was failing due to missing `checkout` and `setup-flutter` steps. These have now been added. Additionally, the versioning logic in `pubspec.yaml` has been corrected to use the `BUILD_NUMBER` for the build version instead of a fixed `+1`.
1 parent c6a709b commit 6e291f3

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/release_flutter_app.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
VERSION=${TAG#v}
2121
echo "Setting version to $VERSION"
2222
# Update pubspec.yaml
23-
sed -i '' "s/^version:.*/version: $VERSION+1/" pubspec.yaml
23+
sed -i "s/^version:.*/version: $VERSION+$BUILD_NUMBER/" pubspec.yaml
2424
2525
build-android:
2626
runs-on: ubuntu-latest
2727
needs: setup-tag
2828

2929
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
3033
- name: Set up Flutter
3134
uses: ./.github/actions/setup-flutter
3235

@@ -47,6 +50,12 @@ jobs:
4750
needs: build-android
4851

4952
steps:
53+
- name: Checkout code
54+
uses: actions/checkout@v4
55+
56+
- name: Set up Flutter
57+
uses: ./.github/actions/setup-flutter
58+
5059
- name: Build macOS release
5160
run: flutter build macos --release
5261

0 commit comments

Comments
 (0)