mucke/.github/workflows/main.yml
2022-10-03 14:15:12 +02:00

37 lines
1.2 KiB
YAML

# This is a basic workflow to help you get started with Actions
name: Build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: [push, pull_request, workflow_dispatch]
# 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"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
# 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
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
java-version: '12.x'
distribution: 'zulu'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.3.3'
- run: flutter pub get
- run: flutter build apk --flavor prod
- name: Github Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags')
with:
files: src/build/app/outputs/flutter-apk/app-prod-release.apk