Skip to content

Commit

Permalink
Merge pull request #3 from paperboy72543/patch-1
Browse files Browse the repository at this point in the history
workflow: format the workflow code
  • Loading branch information
sajidshahriar72543 authored Oct 1, 2023
2 parents 2d71b3c + 985964f commit 4ebe602
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Flutter CI
on:
'on':
push:
branches:
- master
- main

jobs:
TESTING:
name: Setting up the environment
Expand All @@ -15,31 +14,30 @@ 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
steps:
- 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
- name: Push to Releases
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 }}'

0 comments on commit 4ebe602

Please sign in to comment.