Skip to content

Commit

Permalink
Merge branch 'main' into release/v2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
WezSieTato authored Feb 25, 2024
2 parents ce163de + 0b332a8 commit c53029d
Showing 1 changed file with 29 additions and 13 deletions.
42 changes: 29 additions & 13 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
# name: Build Android
name: Build Android

# on:
# push:
# pull_request:
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch: # Allows to trigger the workflow from GitHub

# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: subosito/flutter-action@v1
# with:
# channel: 'stable'
# - run: flutter pub get
jobs:
build_android:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.7"
channel: 'stable'
cache: true # Speed up the process
- name: Get dependencies
run: flutter pub get
- name: Create googleservices file
run: cat /home/runner/work/pola-flutter/pola-flutter/android/app/google-services.json | base64
- name: Putting secret data
env:
DATA: ${{ secrets.GOOGLESERVICES }}
run: echo $DATA > /home/runner/work/pola-flutter/pola-flutter/android/app/google-services.json
- name: Build apk
run: flutter build apk --debug
# - uses: "finnp/create-file-action@master" this step doesn't work
# env:
# FILE_NAME: "/home/runner/work/pola-flutter/pola-flutter/android/app/google-services.json"
Expand Down

0 comments on commit c53029d

Please sign in to comment.