Phonebook member cards : left-aligning on mobile, adding profile pictures on web #564
Workflow file for this run
This file contains 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 characters
name: Build dev artefacts | |
on: | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
ref: | |
required: false | |
type: string | |
pull_request: | |
types: ["labeled"] | |
jobs: | |
build: | |
name: Build ${{ matrix.name }} | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.labels.*.name, 'build') | |
strategy: | |
matrix: | |
include: | |
- target: 'apk --debug --flavor=dev' | |
name: 'APK' | |
path: build/app/outputs/flutter-apk/app-dev-debug.apk | |
- target: 'web --dart-define=flavor=dev' | |
name: 'Web' | |
path: build/web/ | |
steps: | |
- name: Determine ref | |
id: get-ref | |
run: | | |
input_ref=${{ inputs.ref }} | |
github_ref=${{ github.sha }} | |
ref=${input_ref:-$github_ref} | |
echo ref=$ref >> $GITHUB_OUTPUT | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ steps.get-ref.outputs.ref }} | |
- name: Setup Java | |
if: matrix.name == 'APK' | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17.x' | |
cache: 'gradle' | |
- name: Setup Flutter SDK | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
flutter-version: '3.22.2' | |
cache: true | |
- name: Cleanup 🧹 | |
run: flutter clean | |
- name: Get Packages | |
run: flutter pub get | |
- name: Configure Dev env | |
run: echo DEV_HOST=$DEV_HOST >> .env | |
env: | |
DEV_HOST: ${{ vars.DEV_HOST }} | |
- name: Add Firebase configuration for Dev | |
run: | | |
echo $GOOGLE_SERVICES_DEV_JSON_BASE64 | base64 -d > android/app/src/dev/google-services.json | |
env: | |
GOOGLE_SERVICES_DEV_JSON_BASE64: ${{ secrets.GOOGLE_SERVICES_DEV_JSON_BASE64 }} | |
- name: Build Dev 🔧 | |
run: flutter build ${{ matrix.target }} | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: titan-debug-${{ matrix.name }} | |
path: ${{ matrix.path }} | |
if-no-files-found: ignore |