From 5a3d92116e9fceeb04796f6b8d2d1ebcfdd18c7a Mon Sep 17 00:00:00 2001 From: Rahul Kumar Date: Mon, 29 Jan 2024 20:47:46 +0000 Subject: [PATCH] feature: build app using CICD --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 0000000..99b5e48 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +on: + push: + branches: + - main + - master +name: "Build & Release" +jobs: + build: + name: Build & Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: '12' + - uses: subosito/flutter-action@v2 + with: + channel: 'stable' + architecture: x64 + + - run: flutter build apk --release + + - name: Push to Releases + uses: ncipollo/release-action@v1 + with: + artifacts: "build/app/outputs/apk/release/*" + tag: v1.0.${{ github.run_number }} + token: ${{ secrets.TOKENEXCELR }} \ No newline at end of file