From d204d16fa9d0bd5fed2daf9eed85f8c3c96b208f Mon Sep 17 00:00:00 2001 From: "Abd El-Twab M. Fakhry" Date: Fri, 3 Feb 2023 23:01:37 +0200 Subject: [PATCH] Add github-workflow --- .github/workflows/release.yaml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..26ad328 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,37 @@ +--- + +name: Release + +on: + push: + tags: + - 'v[0-9].[0-9].[0-9]' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout the code + uses: actions/checkout@v3 + + - name: Setup Flutter environment + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.7.0' + channel: 'stable' + - run: flutter --version + + - name: Install dependencies + run: flutter create --platforms=ios,android . + + - name: Build artifacts + run: flutter build apk --build-name=${{github.ref_name}} --release + + - name: Release artifacts and source code + uses: ncipollo/release-action@v1 + with: + artifacts: build/app/outputs/flutter-apk/app-release.apk + name: ${{github.ref_name}} + makeLatest: true + generateReleaseNotes: true