-
Notifications
You must be signed in to change notification settings - Fork 10
32 lines (32 loc) · 1.06 KB
/
build.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: build
# Controls when the action will run.
on:
# Triggers the workflow on push events but only for the release branch
push:
branches: [release]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
channel: stable
- run: flutter pub get
- run: flutter build apk
- run: flutter build ios --release --no-codesign
# upload builds to artifact
# TODO ios ipa later
- uses: actions/upload-artifact@v2
with:
name: builds
path: build/app/outputs/apk/release/app-release.apk