dev-1.0.4+5~mainguyen-liberty #36
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
name: Bubble Princess | |
on: | |
repository_dispatch: | |
types: | |
- ppap | |
- dev-* | |
env: | |
LC_ALL: en_US.UTF-8 | |
LANG: en_US.UTF-8 | |
P12_PASSWORD: ${{ secrets.P12_PASSWORD }} | |
REF_NAME: ${{ github.event.client_payload.ref_name }} | |
TRIGGERING_ACTOR: ${{ github.event.client_payload.triggering_actor }} | |
MAIN_REPOSITORY: ${{ secrets.CUCU_REPOSITORY }} | |
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
TELEGRAM_GROUP_ID: ${{ vars.TELEGRAM_GROUP_ID }} | |
TELEGRAM_TOPIC_ID: ${{ vars.TELEGRAM_TOPIC_ID }} | |
API_KEY_JSON: ${{ secrets.API_KEY_JSON }} | |
PRO_API_KEY_JSON: ${{ secrets.PRO_API_KEY_JSON }} | |
PRO_PLAY_STORE_KEY_JSON: ${{ secrets.PRO_PLAY_STORE_KEY_JSON }} | |
RELEASE_KEYSTORE_BASE64: ${{ secrets.RELEASE_KEYSTORE_BASE64 }} | |
DYNAMIC_CONSTANTS_TS_PROD_BASE64: ${{ secrets.DYNAMIC_CONSTANTS_TS_PROD_BASE64 }} | |
PRO_GOOGLE_SERVICES_JSON: ${{ secrets.CUCU_PRO_GOOGLE_SERVICES_JSON }} | |
PRO_GOOGLESERVICE_INFO_PLIST: ${{ secrets.CUCU_PRO_GOOGLESERVICE_INFO_PLIST }} | |
FIREBASE_CLI_TOKEN: ${{ secrets.DEV_FIREBASE_CLI_TOKEN }} | |
SSH_PRIVATE_KEY_SDK_CORE_CLIENT: ${{secrets.SSH_PRIVATE_KEY_SDK_CORE_CLIENT}} | |
jobs: | |
init: | |
name: Init | |
runs-on: macos-14 | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.value }} | |
message-information: ${{ steps.get-message-information.outputs.value }} | |
env: ${{ steps.set-env.outputs.value }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ env.MAIN_REPOSITORY }} | |
token: ${{ secrets.GH_PAT }} | |
ref: ${{ github.event.client_payload.ref_name}} | |
- name: Set matrix | |
id: set-matrix | |
run: | | |
MATRIX="[{\"format\":\"IPA\",\"name\":\"macos-14\",\"platform\":\"IOS\"},{\"format\":\"APK\",\"name\":\"ubuntu-22.04\",\"platform\":\"ANDROID\"}]" | |
if [[ "$REF_NAME" =~ "prd" ]]; then | |
MATRIX="[{\"format\":\"IPA\",\"name\":\"macos-14\",\"platform\":\"IOS\"},{\"format\":\"APK\",\"name\":\"ubuntu-22.04\",\"platform\":\"ANDROID\"},{\"format\":\"AAB\",\"name\":\"ubuntu-22.04\",\"platform\":\"ANDROID\"}]" | |
fi | |
echo "value=$MATRIX" >> $GITHUB_OUTPUT | |
- name: Set env | |
id: set-env | |
run: | | |
ENV='dev' | |
if [[ "$REF_NAME" =~ "prd" ]]; then | |
ENV='prd' | |
elif [[ "$REF_NAME" =~ "stg" ]]; then | |
ENV='stg' | |
fi | |
echo "value=$ENV" >> $GITHUB_OUTPUT | |
- name: Log value | |
run: | | |
echo "tag-source: $REF_NAME" | |
echo "matrix: ${{ steps.set-matrix.outputs.value }}" | |
echo "env: ${{ steps.set-env.outputs.value }}" | |
prepare: | |
name: Prepare ${{ matrix.platform }} | |
continue-on-error: true | |
needs: [init] | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- name: "macos-14" | |
platform: "IOS" | |
- name: "ubuntu-22.04" | |
platform: "ANDROID" | |
runs-on: ${{ matrix.name }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ env.MAIN_REPOSITORY }} | |
token: ${{ secrets.GH_PAT }} | |
ref: ${{ github.event.client_payload.ref_name}} | |
- name: Log value | |
run: | | |
echo "tag-source: $REF_NAME" | |
echo "matrix: ${{ needs.init.outputs.matrix }}" | |
echo "message-information: ${{ needs.init.outputs.env }}" | |
echo "env: ${{ needs.init.outputs.message-information }}" |