Skip to content

Commit

Permalink
Create apk.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mo7amedaliEbaid authored Jul 15, 2024
1 parent ddffbcc commit 30d99dc
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build Flutter APK

on:
push:
branches:
- main # Change to your branch name if different

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 'name: Build Flutter APK
on:
push:
branches:
- main # Change to your branch name if different
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.0.0' # Specify your Flutter version

- name: Install dependencies
run: flutter pub get

- name: Build APK
run: flutter build apk --release

- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: release-apk
path: build/app/outputs/flutter-apk/app-release.apk
' # Specify your Flutter version
- name: Install dependencies
run: flutter pub get
- name: Build APK
run: flutter build apk --release
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: release-apk
path: build/app/outputs/flutter-apk/app-release.apk

0 comments on commit 30d99dc

Please sign in to comment.