-
-
Notifications
You must be signed in to change notification settings - Fork 461
64 lines (54 loc) · 1.76 KB
/
Copy pathwaldo_sessions.yml
File metadata and controls
64 lines (54 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Upload builds to Waldo
on:
workflow_dispatch:
inputs:
repo:
description: 'Repo name (eg: openfoodfacts/smooth-app)'
required: true
type: string
branch:
description: 'Branch name (eg: my-awesome-feature)'
required: true
type: string
permissions:
contents: read
jobs:
build:
runs-on: macos-latest
defaults:
run:
shell: bash
steps:
- name: "Checkout code"
uses: actions/checkout@v7
with:
repository: ${{ github.event.inputs.repo }}
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0
- name: Setup Java JDK
uses: actions/setup-java@v5.5.0
with:
distribution: 'zulu'
java-version: 21
# Get the flutter version from ./flutter-version.txt
- run: echo "FLUTTER_VERSION=$(cat flutter-version.txt)" >> $GITHUB_OUTPUT
id: flutter-version
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
#channel: stable
cache: true
flutter-version: ${{ steps.flutter-version.outputs.FLUTTER_VERSION }}
cache-key: flutter-${{ hashFiles('flutter-version.txt')}}-${{ hashFiles('packages\smooth_app\pubspec.lock')}}
- run: flutter --version
- name: Get dependencies
run: ci/pub_get.sh
# Build apk.
- name: Build APK
run: flutter build apk --debug -t lib/entrypoints/android/main_google_play.dart
working-directory: ./packages/smooth_app
- name: Upload APK to Waldo
uses: waldoapp/gh-action-upload@v3
with:
build_path: packages/smooth_app/build/app/outputs/flutter-apk/app-debug.apk
upload_token: ${{ secrets.WALDO_SESSIONS_ANDROID }}