-
Notifications
You must be signed in to change notification settings - Fork 27
63 lines (49 loc) · 1.38 KB
/
shorebird-release.yml
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
name: Shorebird Release
on:
workflow_dispatch:
env:
SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }}
jobs:
release:
defaults:
run:
shell: bash
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: 🐦 Setup Shorebird
uses: shorebirdtech/setup-shorebird@v1
with:
cache: true
- name: ♻️ Cache Flutter Pub
uses: actions/cache@v3
with:
path: |
~/.pub-cache
build/
key: ${{ runner.os }}-pub-cache-${{ hashFiles('pubspec.lock') }}
- name: 🚀 Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: 📦 Flutter Pub Get
run: flutter pub get
- name: 🛠️ Generate Build Runner (env.g.dart)
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: 🚀 Shorebird Release (Android)
uses: shorebirdtech/shorebird-release@v0
with:
platform: android
- name: 🚀 Shorebird Release (iOS)
uses: shorebirdtech/shorebird-release@v0
with:
platform: ios