Skip to content

Commit

Permalink
Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
htetlynnhtun committed Jul 24, 2024
1 parent 2245a9f commit 0a1a3ff
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build an unsigned apk

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml
- run: flutter --version

- name: Get dependencies
run: flutter pub get

- name: Build release apk
run: flutter build apk --split-per-abi

- name: Upload artifacts
uses: actions/[email protected]
with:
name: Android apks
path: build/app/outputs/flutter-apk/*release.apk
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1183,4 +1183,4 @@ packages:
version: "2.2.1"
sdks:
dart: ">=3.4.3 <4.0.0"
flutter: ">=3.22.0"
flutter: ">=3.22.2"
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ version: 1.0.0+11

environment:
sdk: '>=3.4.3 <4.0.0'
flutter: 3.22.2

dependencies:
flutter:
Expand Down

0 comments on commit 0a1a3ff

Please sign in to comment.