-
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
bd7ed93
commit 9f96483
Showing
1 changed file
with
84 additions
and
81 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 |
---|---|---|
|
@@ -222,85 +222,88 @@ jobs: | |
working-directory: ios | ||
run: pod install | ||
|
||
- name: Cache Xcode build | ||
uses: irgaly/xcode-cache@v1 | ||
if: matrix.platform == 'IOS' | ||
with: | ||
key: xcode-cache-deriveddata-${{ needs.init.outputs.env }}-${{ hashFiles('yarn.lock') }} | ||
restore-keys: xcode-cache-deriveddata-${{ needs.init.outputs.env }}- | ||
|
||
# NOTE: load environment and file | ||
- name: Load secret files | ||
run: bash scripts/load_secret_file.sh | ||
|
||
- name: Change version and build number | ||
run: bash scripts/change_version_and_build_number.sh | ||
|
||
- name: Config environment | ||
run: bash scripts/load_build_configure_${{ needs.init.outputs.env }}.sh | ||
|
||
- name: Generate launcher icon | ||
uses: borales/actions-yarn@v5 | ||
with: | ||
cmd: appicon:create | ||
|
||
- name: Install certificate and provision | ||
if: matrix.platform == 'IOS' | ||
run: bash scripts/install_cert_and_provision.sh | ||
|
||
- name: Link Node (/usr/local/bin/node) | ||
if: matrix.platform == 'IOS' | ||
run: ln -s $(command -v node) /usr/local/bin/node | ||
|
||
# NOTE: start build | ||
- name: Build IPA | ||
if: matrix.format == 'IPA' | ||
uses: maierj/[email protected] | ||
with: | ||
lane: "ios build_ipa_${{ needs.init.outputs.env }}" | ||
|
||
- name: Build APK | ||
if: matrix.format == 'APK' | ||
uses: maierj/[email protected] | ||
with: | ||
lane: "android build_apk_${{ needs.init.outputs.env }}" | ||
|
||
- name: Build AAB | ||
if: matrix.format == 'AAB' | ||
uses: maierj/[email protected] | ||
with: | ||
lane: "android build_aab_prod" | ||
|
||
# NOTE: deploy | ||
- name: Deploy ipa | ||
if: matrix.format == 'IPA' | ||
uses: maierj/[email protected] | ||
with: | ||
lane: ios deploy_ipa_${{ needs.init.outputs.env }} | ||
|
||
- name: Deploy APK to firebase | ||
if: matrix.format == 'APK' | ||
uses: maierj/[email protected] | ||
with: | ||
lane: android deploy_apk_${{ needs.init.outputs.env }} | ||
|
||
- name: Deploy AAB to playstore | ||
if: matrix.format == 'AAB' | ||
uses: maierj/[email protected] | ||
with: | ||
lane: android deploy_aab_prod | ||
|
||
- name: Send telegram message | ||
if: vars.IS_SILENT != 'true' | ||
uses: PacificPromise/macos-telegram-action@main | ||
with: | ||
type: topic | ||
message: "✅ - Success ${{ matrix.format }}: ${{ needs.init.outputs.message-information }}" | ||
|
||
- name: Send telegram message failure | ||
if: ${{ failure() && vars.IS_SILENT != 'true' }} | ||
uses: PacificPromise/macos-telegram-action@main | ||
with: | ||
type: topic | ||
message: "💥 - Failure ${{ matrix.format }}: ${{ needs.init.outputs.message-information }}" | ||
- name: show Podfile.lock | ||
run: cat ios/Podfile.lock | ||
|
||
# - name: Cache Xcode build | ||
# uses: irgaly/xcode-cache@v1 | ||
# if: matrix.platform == 'IOS' | ||
# with: | ||
# key: xcode-cache-deriveddata-${{ needs.init.outputs.env }}-${{ hashFiles('yarn.lock') }} | ||
# restore-keys: xcode-cache-deriveddata-${{ needs.init.outputs.env }}- | ||
|
||
# # NOTE: load environment and file | ||
# - name: Load secret files | ||
# run: bash scripts/load_secret_file.sh | ||
|
||
# - name: Change version and build number | ||
# run: bash scripts/change_version_and_build_number.sh | ||
|
||
# - name: Config environment | ||
# run: bash scripts/load_build_configure_${{ needs.init.outputs.env }}.sh | ||
|
||
# - name: Generate launcher icon | ||
# uses: borales/actions-yarn@v5 | ||
# with: | ||
# cmd: appicon:create | ||
|
||
# - name: Install certificate and provision | ||
# if: matrix.platform == 'IOS' | ||
# run: bash scripts/install_cert_and_provision.sh | ||
|
||
# - name: Link Node (/usr/local/bin/node) | ||
# if: matrix.platform == 'IOS' | ||
# run: ln -s $(command -v node) /usr/local/bin/node | ||
|
||
# # NOTE: start build | ||
# - name: Build IPA | ||
# if: matrix.format == 'IPA' | ||
# uses: maierj/[email protected] | ||
# with: | ||
# lane: "ios build_ipa_${{ needs.init.outputs.env }}" | ||
|
||
# - name: Build APK | ||
# if: matrix.format == 'APK' | ||
# uses: maierj/[email protected] | ||
# with: | ||
# lane: "android build_apk_${{ needs.init.outputs.env }}" | ||
|
||
# - name: Build AAB | ||
# if: matrix.format == 'AAB' | ||
# uses: maierj/[email protected] | ||
# with: | ||
# lane: "android build_aab_prod" | ||
|
||
# # NOTE: deploy | ||
# - name: Deploy ipa | ||
# if: matrix.format == 'IPA' | ||
# uses: maierj/[email protected] | ||
# with: | ||
# lane: ios deploy_ipa_${{ needs.init.outputs.env }} | ||
|
||
# - name: Deploy APK to firebase | ||
# if: matrix.format == 'APK' | ||
# uses: maierj/[email protected] | ||
# with: | ||
# lane: android deploy_apk_${{ needs.init.outputs.env }} | ||
|
||
# - name: Deploy AAB to playstore | ||
# if: matrix.format == 'AAB' | ||
# uses: maierj/[email protected] | ||
# with: | ||
# lane: android deploy_aab_prod | ||
|
||
# - name: Send telegram message | ||
# if: vars.IS_SILENT != 'true' | ||
# uses: PacificPromise/macos-telegram-action@main | ||
# with: | ||
# type: topic | ||
# message: "✅ - Success ${{ matrix.format }}: ${{ needs.init.outputs.message-information }}" | ||
|
||
# - name: Send telegram message failure | ||
# if: ${{ failure() && vars.IS_SILENT != 'true' }} | ||
# uses: PacificPromise/macos-telegram-action@main | ||
# with: | ||
# type: topic | ||
# message: "💥 - Failure ${{ matrix.format }}: ${{ needs.init.outputs.message-information }}" | ||
|