diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..5a222ed --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,26 @@ +name: CD +on: + push: + tags: + - 'v*' +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v1 + - name: Download Flutter packages + run: flutter pub get + - name: Create AAB + run: flutter build appbundle + - name: Create iOS + run: flutter build ipa + - name: Zip builds + run: + - name: Artifact builds + uses: actions/upload-artifact@v3 + with: + name: code-coverage-report + path: + - build/app/outputs/bundle/release/app-release.aab + - build/build/ios/ipa \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..0dc4ecd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,16 @@ +name: CI +on: push +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: subosito/flutter-action@v1 + - name: Download Flutter packages + run: flutter pub get + - name: Flutter format + run: flutter format --set-exit-if-changed + - name: Flutter analyze + run: flutter analyze --fatal-infos --fatal-warnings + - name: Flutter test + run: flutter test \ No newline at end of file