From 985964fd2562bb25dbf5cdb6d76642eebaecebc9 Mon Sep 17 00:00:00 2001 From: paperboy72543 <94736088+paperboy72543@users.noreply.github.com> Date: Sun, 1 Oct 2023 20:40:27 +0600 Subject: [PATCH] workflow: format the workflow code --- .github/workflows/main.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index af7fd4d..4dfa4fa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,10 +1,9 @@ name: Flutter CI -on: +'on': push: branches: - master - main - jobs: TESTING: name: Setting up the environment @@ -15,13 +14,12 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 with: - java-version: "12.x" + java-version: 12.x - uses: subosito/flutter-action@v1 with: - channel: "stable" + channel: stable - run: flutter clean - run: flutter pub get - BUILDING_THE_APP: name: Build for Android runs-on: ubuntu-latest @@ -29,10 +27,10 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 with: - java-version: "12.x" + java-version: 12.x - uses: subosito/flutter-action@v1 with: - channel: "stable" + channel: stable - run: flutter pub get - run: flutter clean - run: flutter build apk --release --target-platform android-arm64 @@ -40,6 +38,6 @@ jobs: id: create-new-release uses: ncipollo/release-action@v1.10.0 with: - artifacts: "build/app/outputs/apk/release/*.apk" - tag: v1.0.${{ github.run_number }} - token: ${{ secrets.TOKEN }} + artifacts: build/app/outputs/apk/release/*.apk + tag: 'v1.0.${{ github.run_number }}' + token: '${{ secrets.TOKEN }}'