Skip to content

Commit

Permalink
Github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
BhasherBEL committed Mar 24, 2023
1 parent 798f2a3 commit 97bc9ce
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on:
pull_request:
branches:
- "master"
paths:
- lib/**
push:
branches:
- "master"
paths:
- lib/**
workflow_dispatch:

jobs:
build-android:
name: Build for Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter pub get
# - run: flutter analyze
- run: flutter build apk --debug
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Build

on:
push:
tags:
- "*"
workflow_dispatch:

jobs:
build-android:
name: Build for Android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
cache: 'gradle'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter pub get
# - run: flutter analyze
- run: flutter build apk --release
- uses: ncipollo/[email protected]
with:
artifacts: "build/app/outputs/flutter-apk/app-release.apk"
1 change: 0 additions & 1 deletion lib/components/home_page.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
import 'package:shared/components/projects_list.dart';
import 'package:shared/model/app_data.dart';
import 'package:shared/model/connectors/local/provider.dart';
import 'package:shared/screens/new_project_screen.dart';

import '../model/project.dart';
Expand Down

0 comments on commit 97bc9ce

Please sign in to comment.