-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (39 loc) · 1.13 KB
/
release.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
name: Releases
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable' # or: 'beta', 'dev' or 'master'
- run: flutter pub get
working-directory: mobile
# - run: flutter test
# working-directory: mobile
- run: flutter build apk --debug --split-per-abi
working-directory: mobile
- name: Push APK to Releases
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/debug/*.apk"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
artifactErrorsFailBuild: false
artifactContentType: "raw"
bodyFile: "body.md"
discussionCategory: "Release"
draft: false
prerelease: false
replacesArtifacts: true
- name: Dump Release Outputs
env:
RELEASE_OUTPUT: ${{ toJson(steps.release.outputs) }}
run: echo "$RELEASE_OUTPUT"