mucke/.github/workflows/build.yml

37 lines
1 KiB
YAML
Raw Normal View History

2020-06-01 22:26:17 +02:00
# This is a basic workflow to help you get started with Actions
2020-06-07 11:39:37 +02:00
name: Build
2020-06-01 22:26:17 +02:00
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# 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"
2020-06-07 11:39:37 +02:00
build:
2020-06-01 22:26:17 +02:00
# The type of runner that the job will run on
runs-on: ubuntu-latest
2022-10-02 22:32:12 +02:00
defaults:
run:
working-directory: src
2020-06-01 22:26:17 +02:00
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2022-10-02 22:13:22 +02:00
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
2020-06-01 22:26:17 +02:00
with:
java-version: '12.x'
2022-10-02 22:27:17 +02:00
distribution: 'zulu'
2020-06-01 22:34:02 +02:00
2022-10-02 22:13:22 +02:00
- uses: subosito/flutter-action@v2
2020-06-01 22:26:17 +02:00
with:
2022-10-02 22:32:12 +02:00
flutter-version: '3.3.3'
2020-06-01 22:26:17 +02:00
- run: flutter pub get
2022-10-02 22:47:15 +02:00
- run: flutter build apk --flavor prod