From c0deab4dd5d829c94d49c192864b6fd7233bb71c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vitor?= Date: Wed, 11 May 2022 16:52:03 -0300 Subject: [PATCH] Build Releases --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..8a033778 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +on: + pull_request: + branches: + - origin + push: + branches: + - origin + +name: "Build & Release" + +jobs: + build: + name: Build & Release + runs-on: macos-latest + env: + JAVA_VERSION: "11.0" + FLUTTER_VERSION: "2.10.5" + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: ${{env.JAVA_VERSION}} + - uses: subosito/flutter-action@v2 + with: + channel: 'beta' + - run: flutter pub get + # - run: flutter analyze + - run: flutter build apk --release + - name: Push to Releases + uses: ncipollo/release-action@v1 + with: + artifacts: "build/app/outputs/flutter-apk/*.apk" + tag: v1.0.${{ github.run_number }} + token: ${{ secrets.TOKEN }} \ No newline at end of file