-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (53 loc) · 2.08 KB
/
dev.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: Dev CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Note: This workflow uses the latest stable version of the Dart SDK.
# You can specify other versions if desired, see documentation here:
# https://github.com/dart-lang/setup-dart/blob/main/README.md
# - uses: dart-lang/setup-dart@v1
- uses: dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
- name: Setup project
run: |
echo "Accept permision..."
make denied
echo "Install bootstrap..."
make pre-bootstrap
echo "Pub get..."
make gh-pub-get
- name: Setup env
env:
ENV: ${{ secrets.ROOT_KEYSTORE_DEV }}
ROOT_KEYSTORE_DEV: ${{ secrets.ROOT_KEYSTORE_DEV }}
run: |
echo -n ${ROOT_KEYSTORE_DEV} | base64 -d > app/android/root-keystore-dev.jks
echo -n ${ENV} | base64 -d > configs/.env.zip && jar xf configs/.env.zip
- name: Build Release apk
run: make gh-build-android-apk flavor=dev
- name: Build Release bundle
run: make gh-build-android-aab flavor=dev
- name: Get release file aab path
id: releaseAab
run: echo "aabfile=$(find app/build/app/outputs/flutter-apk/app-dev-release.aab)" >> $GITHUB_OUTPUT
- name: Get release file apk path
id: releaseApk
run: echo "apkfile=$(find app/build/app/outputs/flutter-apk/app-dev-release.apk)" >> $GITHUB_OUTPUT
- name: Zip Files
uses: papeloto/action-zip@v1
with:
files: ${{ steps.releaseAab.outputs.aabfile }} ${{ steps.releaseApk.outputs.apkfile }}
dest: app-dev-release.zip
- name: Sending release build to Telegram
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
document: app-dev-release.zip
message: 🚀 New Release Published on DEV! >>> ${{github.head_ref}}.