Skip to content

Commit

Permalink
log Podfile.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
mainguyen-liberty committed Sep 11, 2024
1 parent bd7ed93 commit 9f96483
Showing 1 changed file with 84 additions and 81 deletions.
165 changes: 84 additions & 81 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit 9f96483

Please sign in to comment.