|
@@ -0,0 +1,28 @@
|
|
|
+name: CI
|
|
|
+on:
|
|
|
+ push:
|
|
|
+ branches: [ master ]
|
|
|
+ pull_request:
|
|
|
+ branches: [ master ]
|
|
|
+jobs:
|
|
|
+ build:
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: Setup Java JDK
|
|
|
+ uses: actions/setup-java@v1.3.0
|
|
|
+ with:
|
|
|
+ java-version: "12.x"
|
|
|
+ - name: Flutter action
|
|
|
+ uses: subosito/flutter-action@v1.1.1
|
|
|
+ with:
|
|
|
+ channel: "stable"
|
|
|
+ flutter-version: "1.12.x"
|
|
|
+ - run: flutter pub get
|
|
|
+ - run: flutter build apk --release
|
|
|
+ - run: pwd
|
|
|
+ - name: artifact
|
|
|
+ uses: actions/upload-artifact@v1
|
|
|
+ with:
|
|
|
+ name: chat-app-ui
|
|
|
+ path: /home/runner/work/chat-app-ui/chat-app-ui/build/app/outputs
|