-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 944 Bytes
/
Build.yaml
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
name: Build
on:
workflow_dispatch:
push:
branches: [ master ]
env:
VERSION: 0.2.${{ github.run_number }}
FLUTTER_VERSION: "3.7.12"
jobs:
BuildApk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: britannio/action-install-flutter@main
# with:
# version: ${{ env.FLUTTER_VERSION }}
- run: flutter build apk --build-name=${{ env.VERSION }} --build-number=${{ github.run_number }}
working-directory: ./
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: apk
path: ./build/app/outputs/flutter-apk/app-release.apk
BuildWeb:
runs-on: ubuntu-latest
steps:
- uses: Fedodo/Fedodo.Pipelines/BuildContainerFlutter@main
with:
DOCKERHUB_TOKEN: ${{secrets.DOCKERHUB_TOKEN}}
REPO: "fedodo.ui.micro"
TAG_PREFIX: ""