-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (39 loc) · 1.27 KB
/
Copy pathCD-deploy-github-releases.yml
File metadata and controls
48 lines (39 loc) · 1.27 KB
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
47
48
name: Deploy App (Android) Release to Github Releases
on:
push:
tags:
- '*'
jobs:
build:
if: github.event.base_ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- name: Get flutter dependencies
run: flutter pub get
working-directory: Space_Mapper
- name: Statically analyze the Dart code for any errors.
run: flutter analyze
working-directory: Space_Mapper
- name: Run tests for our flutter project.
run: flutter test
working-directory: Space_Mapper
- name: Build apk
run: flutter build apk --debug
working-directory: Space_Mapper
- name: Build appbundle
run: flutter build appbundle --debug
working-directory: Space_Mapper
- name: Create a Release in GitHub
uses: ncipollo/release-action@v1
with:
artifacts: "././Space_Mapper/build/app/outputs/flutter-apk/app-debug.apk,././Space_Mapper/build/app/outputs/bundle/debug/app-debug.aab"
token: ${{ secrets.GH_TOKEN }}
tag: ${{ steps.version.outputs.content }}
commit: ${{ github.sha }}