-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a32c7a
commit 5fb9077
Showing
5 changed files
with
119 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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: | | ||
cd app/android && echo -n ${ROOT_KEYSTORE_DEV} | base64 -d > root-keystore-dev.jks | ||
cd ../../configs && echo -n ${ENV} | base64 -d > .env.zip && jar xf .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}}. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Notifier | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
name: Sent telegram message | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: send telegram message on push | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_TO }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
message: | | ||
${{ github.actor }} created commit: | ||
Branch: ${{github.head_ref}} | ||
Commit message: ${{ github.event.commits[0].message }} | ||
Repository: ${{ github.repository }} | ||
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,10 @@ | |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
@@ -185,6 +189,8 @@ | |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
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