Skip to content

Commit

Permalink
Create flutter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sapatevaibhav authored Nov 13, 2023
1 parent c840be0 commit 491764b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Password manager

on:
push:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '2.x'

- name: Get dependencies
run: flutter pub get

- name: Run tests
run: flutter test

- name: Build APK
run: flutter build apk

deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Upload APK to artifacts
uses: actions/upload-artifact@v2
with:
name: app
path: build/app/outputs/flutter-apk/app-release.apk

0 comments on commit 491764b

Please sign in to comment.