diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4cb4c2..a4dda78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,9 +32,10 @@ jobs: - name: Set up Flutter uses: subosito/flutter-action@v2 with: - flutter-version: '3.38.7' + flutter-version-file: './workout-logger/pubspec.yaml' channel: 'stable' cache: true + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-${{ hashFiles('workout-logger/pubspec.lock') }}" - name: Install dependencies working-directory: ./workout-logger @@ -69,7 +70,7 @@ jobs: echo "committed=false" >> $GITHUB_OUTPUT else git commit -m "chore: bump version to ${{ steps.version.outputs.value }}" - git push origin main + git push origin HEAD:${{ github.ref_name }} echo "committed=true" >> $GITHUB_OUTPUT fi diff --git a/CLAUDE.md b/CLAUDE.md index 96d4b6d..4a1ff5d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -16,7 +16,7 @@ This file provides guidance for AI assistants working on the RepForge codebase. **Package:** `com.devasy.repforge` **Version:** `1.0.6+7` -**Flutter SDK:** `^3.9.2` +**Flutter SDK:** `3.41.5` --- @@ -217,7 +217,7 @@ dart run build_runner build --delete-conflicting-outputs Triggers automatically on push to `main`: 1. Runs `dart scripts/bump_version.dart patch` (increments patch version) 2. Commits version bump and creates a git tag (`v{version}`) -3. Builds release APK with Flutter 3.38.7 +3. Builds the release APK with the Flutter version pinned in `workout-logger/pubspec.yaml` (currently 3.41.5) 4. Creates a GitHub Release with the APK attached **Do not** manually edit `pubspec.yaml` version before merging to `main` — the CI handles it. For a minor/major bump, edit `pubspec.yaml` manually before the merge.