-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 842 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Flutter Build Action
run-name: Building Flutter App
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Flutter-Action:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 2.8.0
cache: true
- run: flutter pub get
- run: flutter build apk
- name: upload artifects
uses: actions/upload-artifact@master
with:
name: android-app
path: build/app/outputs/apk/release
# - uses: skx/github-action-publish-binaries@master
# env:
# GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
# with:
# args: 'build/app/outputs/apk/release/app-release.apk'