Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SankethBK committed Oct 26, 2024
1 parent 6da3f3e commit 8109988
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 8109988

Please sign in to comment.