-
Notifications
You must be signed in to change notification settings - Fork 92
41 lines (39 loc) · 1008 Bytes
/
deploy-apk.yaml
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
33
34
35
36
37
38
39
40
41
name: Create sample app APK
on:
# pull_request:
# branches:
# - "master"
# paths-ignore:
# - "**/README.md"
# - "**/CHANGELOG.md"
# - "docs/**"
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3.13.0
with:
java-version: "17.x"
distribution: "zulu"
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Make executeable build-apk.sh
run: chmod +x tool/build-apk.sh
- name: Install dependencies & Build apk
run: tool/build-apk.sh
- uses: actions/upload-artifact@v3
with:
name: release-apk
path: ./example/build/app/outputs/apk/release/app-release.apk
if-no-files-found: error