Skip to content

Commit

Permalink
Create android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfuertes authored Apr 21, 2022
1 parent e9ea9d3 commit 3e9264f
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This is a basic workflow to help you get started with Actions

name: android

# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout the code
uses: actions/checkout@v2

- name: Install and set Flutter version
uses: subosito/flutter-action@v2.3.0
#with:
# flutter-version: '2.5'

- name: Restore packages
working-directory: ./flutter_app
run: flutter pub get

- name: Build Flutter
working-directory: ./flutter_app
run: flutter build apk --split-per-abi

- name: Pushing Artifacts to Telegram Bot (csbookci)
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: "Build succeeded!"
disable_notification: true
document: ./flutter_app/build/app/outputs/apk/release/*arm*.apk


- name: Upload the artifacts
uses: actions/upload-artifact@v3.0.0
with:
# Artifact name
name: release-android
# Destination path
path: ./flutter_app/build/app/outputs/apk/release/*.apk



0 comments on commit 3e9264f

Please sign in to comment.