Created
April 22, 2023 17:46
-
-
Save narayann7/bc16afec4ce2d59c25e8703460ac57d6 to your computer and use it in GitHub Desktop.
Revisions
-
narayann7 created this gist
Apr 22, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ ``` name: Flutter CI on: push: branches: - main pull_request: branches: - main jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-java@v1 with: java-version: "12.x" - uses: subosito/flutter-action@v1 with: channel: "beta" - run: flutter pub get - run: flutter analyze . - run: flutter build apk --release - run: mv build/app/outputs/flutter-apk/app-release.apk . - run: mv app-release.apk ${{ secrets.APP_NAME }}.apk - run: | curl -F file=@${{ secrets.APP_NAME }}.apk -F "initial_comment=${{ secrets.COMMIT_URL }}$(git rev-parse HEAD)" -F channels=${{ secrets.SLACK_CHANNEL_ID }} -H "Authorization: Bearer ${{ secrets.SLACK_TOKEN }}" https://slack.com/api/files.upload ```