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