Skip to content

Merge pull request #18 from Nailsonseat/room-vacancy-lost-and-found #43

Merge pull request #18 from Nailsonseat/room-vacancy-lost-and-found

Merge pull request #18 from Nailsonseat/room-vacancy-lost-and-found #43

name: Flutter Build Apk
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
defaults:
run:
working-directory: ./frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/setup-java@v4
with:
distribution: "oracle"
java-version: "17"
- uses: subosito/flutter-action@v2
with:
channel: "beta"
- name: Get dependencies
run: flutter pub get
- name: Format code
run: dart format .
- name: Build APK
run: flutter build apk
- name: Upload APK artifact
uses: actions/upload-artifact@v2
with:
name: release-apk
path: frontend/build/app/outputs/apk/release/app-release.apk