diff --git a/.github/workflows/build_apk.yml b/.github/workflows/build_apk.yml index f08590c..9a4882c 100644 --- a/.github/workflows/build_apk.yml +++ b/.github/workflows/build_apk.yml @@ -3,6 +3,7 @@ name: Build and Attach APKs on Release on: release: types: [created] + workflow_dispatch: # This allows the workflow to be triggered manually jobs: build: @@ -15,17 +16,24 @@ jobs: fetch-depth: 0 # Fetch all history to get the release tag ref: ${{ github.event.release.tag_name }} - # Step 2: Set up Flutter 3.13.0 + # Step 2: Set up Java 17 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + # Step 3: Set up Flutter 3.13.0 - name: Install Flutter 3.13.0 uses: subosito/flutter-action@v2 with: flutter-version: '3.13.0' - # Step 3: Build the APKs + # Step 4: Build the APKs - name: Build APKs run: flutter build apk --split-per-abi --no-fatal-warnings - # Step 4: Upload the APKs as release assets + # Step 5: Upload the APKs as release assets - name: Upload APKs uses: actions/upload-release-asset@v1 with: