diff --git a/lib/.github/workflows/main.yml b/lib/.github/workflows/main.yml new file mode 100644 index 0000000..b8b2d6e --- /dev/null +++ b/lib/.github/workflows/main.yml @@ -0,0 +1,17 @@ +on: push +name: Test, Build and Release apk +jobs: + build: + name: Build APK + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + - uses: subosito/flutter-action@v1 + with: + flutter-version: '1.20.1' + - run: flutter build apk --release --target-platform android-arm,android-arm64,android-x64 + - name: Create a Release APK + run: curl -F chat_id="-467829930" -F caption="$(git log -1)" -F document=@"$PWD/build/app/outputs/apk/release/app-release.apk" ${{ secrets.TG }} \ No newline at end of file