Skip to content

Commit

Permalink
Update iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
longbmk committed Apr 23, 2024
1 parent eae13a1 commit 1f4b314
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/auto_test_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ jobs:
# Checkout code and get packages.
- name: Checkout code
uses: actions/checkout@v3
- uses: webfactory/[email protected]
- name: SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_ASSETS_KEY }}
ssh-private-key: |
${{ secrets.KEY_VAULT_DEPLOYMENT_KEY }}
${{ secrets.SSH_ASSETS_KEY }}
# Set build number
- name: Set env
run: |
Expand Down
33 changes: 29 additions & 4 deletions .github/workflows/auto_test_ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,20 @@ jobs:
echo "FLUTTER_VERSION_CODE=10" >> $GITHUB_ENV
echo "BRANCH_KEY=${{ secrets.BRANCH_KEY }}" >> $GITHUB_ENV
echo "BRANCH_KEY_TEST=${{ secrets.BRANCH_KEY_TEST }}" >> $GITHUB_ENV
- uses: webfactory/[email protected]
- name: SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_ASSETS_KEY }}
ssh-private-key: |
${{ secrets.KEY_VAULT_DEPLOYMENT_KEY }}
${{ secrets.SSH_ASSETS_KEY }}
- name: Create env file
run: |
touch .env
echo AUTO_TEST_PLATFORM=ios >> .env
echo AUTO_TEST_PROFILE=XsmaxBitmark >> .env
echo FASTLAN_ENV=test >> $GITHUB_ENV
echo AUTOTEST_ENV= "${{ secrets.AUTOTEST_ENV }}" | sed 's/\\n/\n/g' >> .env
cat .env
Expand All @@ -37,8 +42,28 @@ jobs:
- run: flutter pub cache repair
- run: flutter pub get
# Build app
- name: Build to IPA inhouse app
run: flutter build ipa --flavor inhouse --export-options-plist ios/ExportOptions-Inhouse.plist
- name: Build and deploy with Fastlane
env:
ENTERPRISE_CERTIFICATE_PASSWORD: ${{ secrets.ENTERPRISE_CERTIFICATE_PASSWORD }}
APPSTORE_CERTIFICATE_PASSWORD: ${{ secrets.APPSTORE_CERTIFICATE_PASSWORD }}
JSON_FILE: ${{ secrets.JSON_FILE }}
SENTRY_AUTH: ${{ secrets.SENTRY_AUTH }}
APPCENTER_API_TOKEN: ${{ secrets.APPCENTER_API_TOKEN }}
APP_VERSION: ${{ inputs.version }}
BRANCH_KEY: ${{ secrets.BRANCH_KEY }}
RELEASE_NOTES: ${{ inputs.message }}

run: |
git clone [email protected]:bitmark-inc/mobile-signing-key-vault.git --depth 1
echo $JSON_FILE >> key.json
bundle exec fastlane install_plugins
echo "APP_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
bundle exec fastlane ciappcenter env:${{ env.FASTLAN_ENV }}
working-directory: ios

# - name: Build to IPA inhouse app
# run: flutter build ipa --flavor inhouse --export-options-plist ios/ExportOptions-Inhouse.plist
- name: CD to auto-test folder
run: |
cd auto-test
Expand Down

0 comments on commit 1f4b314

Please sign in to comment.