Skip to content

Commit

Permalink
ci: support distribute ios appstore on ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardo2016x committed May 13, 2024
1 parent ee6c2d6 commit 7e03f69
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 127 deletions.
111 changes: 0 additions & 111 deletions .github/workflows/android_alpha.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/android_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- 'android-release-*'
branches:
- 'ci/android-release-*'
- ci/*
- ci/universal-release-*
workflow_dispatch:
inputs:
buildchannel:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
name: Build and deploy iOS alpha
name: Build and deploy iOS release
on:
push:
tags:
- 'ios-alpha-*'
- 'ios-release-*'
branches:
- 'ci/ios-alpha-*'
- ci/*
- 'ci/ios-release-*'
- ci/universal-release-*
workflow_dispatch:
inputs:
REALLY_UPLOAD:
required: true
type: boolean
default: true
SENTRY_DISABLE_AUTO_UPLOAD:
required: true
type: boolean
default: true
workflow_call:
secrets:
KEYCHAIN_PASS:
Expand All @@ -20,7 +30,7 @@ env:

jobs:
setup:
name: iOS-alpha-build
name: iOS-release-build
runs-on: [self-hosted, mobile, macOS]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -53,21 +63,34 @@ jobs:
xcode-version: '15.3'

- name: Install dependencies
shell: bash
run: |
yarn --version;
cd ./apps/mobile;
yarn install;
- name: Build app
shell: bash
run: |
yarn prepare-archive;
# security unlock-keychain -p ${{ secrets.KEYCHAIN_PASS }} ~/Library/Keychains/login.keychain-db
security unlock-keychain -p ${{ secrets.KEYCHAIN_PASS }} login.keychain
cd ios && bundle install && bundle exec pod install;
cd ../;
./scripts/deploy-ios-adhoc.sh
env:
KEYCHAIN_PASS: ${{ secrets.KEYCHAIN_PASS }}
RABBY_MOBILE_BUILD_BUCKET: ${{ secrets.RABBY_MOBILE_BUILD_BUCKET }}
RABBY_MOBILE_KR_PWD: ${{ secrets.RABBY_MOBILE_KR_PWD }}
RABBY_MOBILE_SENTRY_AUTH_TOKEN2: ${{ secrets.RABBY_MOBILE_SENTRY_AUTH_TOKEN2 }}
SENTRY_AUTH_TOKEN: ${{ secrets.RABBY_MOBILE_SENTRY_AUTH_TOKEN2 }}
REALLY_UPLOAD: ${{ inputs.REALLY_UPLOAD }}
SENTRY_DISABLE_AUTO_UPLOAD: ${{ inputs.SENTRY_DISABLE_AUTO_UPLOAD }}
CONFIGURATION: release
TYPE: adhoc
BUILD_ENV: alpha
BUILD_ENV: release
LARK_CHAT_URL: ${{ secrets.LARK_CHAT_URL }}
LARK_CHAT_SECRET: ${{ secrets.LARK_CHAT_SECRET }}
RABBY_ROBOT_LARK_APP_ID: ${{ secrets.RABBY_ROBOT_LARK_APP_ID }}
Expand All @@ -80,15 +103,6 @@ jobs:
GIT_REF_NAME: ${{ github.ref_name }}
GIT_REF_URL: ${{ github.server_url }}/${{ github.repository }}/tree/${{ github.ref_name }}
GITHUB_REF: ${{ github.ref }}
run: |
cd apps/mobile;
yarn prepare-archive;
# security unlock-keychain -p ${{ secrets.KEYCHAIN_PASS }} ~/Library/Keychains/login.keychain-db
security unlock-keychain -p ${{ secrets.KEYCHAIN_PASS }} login.keychain
cd ios && bundle install && bundle exec pod install;
cd ../;
REALLY_UPLOAD=true ./scripts/deploy-ios-adhoc.sh

- name: Upload artifact
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 7e03f69

Please sign in to comment.