Skip to content

Wyniesienie generowanych plików z repozytorium #333

Wyniesienie generowanych plików z repozytorium

Wyniesienie generowanych plików z repozytorium #333

Workflow file for this run

name: Build Android
on:
push:
pull_request:
jobs:
build_android:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '18'
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true # Speed up the process
- name: Get dependencies
run: flutter pub get
- run: dart run build_runner build
- 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"
# FILE_BASE64: ${{ secrets.GOOGLESERVICES }}
# - run: flutter build apk --debug