Skip to content

Commit

Permalink
Setup Github actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh-23 committed Aug 15, 2020
1 parent 4048806 commit 2b4b7cf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/.github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: push
name: Test, Build and Release apk
jobs:
build:
name: Build APK
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:
flutter-version: '1.20.1'
- run: flutter build apk --release --target-platform android-arm,android-arm64,android-x64
- name: Create a Release APK
run: curl -F chat_id="-467829930" -F caption="$(git log -1)" -F document=@"$PWD/build/app/outputs/apk/release/app-release.apk" ${{ secrets.TG }}

0 comments on commit 2b4b7cf

Please sign in to comment.