forked from piman528/aitapp
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.25 KB
/
build_android.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: build android
on:
workflow_dispatch:
push:
branches:
- dev
jobs:
build_android:
name: Build apk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
#JAVA環境構築
- name: install java 17.x
uses: actions/setup-java@v1
with:
java-version: 17.x
- name: setup cache
uses: actions/cache@v1
with:
path: /Users/runner/hostedtoolcache/flutter
key: ${{ runner.OS }}-flutter-install-cache
- name: Create dot env file
shell: bash
run: |
mkdir env
cd env
touch .env
echo "BLOWFISHKEY=${{ secrets.BLOWFISH_KEY }}" >> .env
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Get flutter Package
run: flutter pub get
- name: build_runner build
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- name: Build app
run: flutter build apk --release
- name: Upload artifact
uses: actions/[email protected]
with:
name: release-apk
path: build/app/outputs/flutter-apk/app-release.apk