Skip to content

wip - ios pipeline sec keychain err #39

wip - ios pipeline sec keychain err

wip - ios pipeline sec keychain err #39

Workflow file for this run

name: CI/CD Workflow
on:
push:
branches:
- dev
- master
jobs:
build-deploy-android:
name: Build Android & deploy to PlayStore
runs-on: ubuntu-latest
container:
image: opunbuds/ionic-capacitor-android-simple-build-box:node-hydrogen
steps:
- uses: actions/checkout@v2
- name: Build and deploy
run: |
echo "${{ secrets.GOOGLE_SVC_JSON }}" | base64 -d > android/app/google-services.json
echo "${{ secrets.SVC_ACCOUNT }}" | base64 -d > pc-api-8152115809467011764-994-c96c4f0b05ff.json
echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > belair.keystore
npm i
export APP_VERSION=$(./tools/version-android.sh)
echo "Version $APP_VERSION, Build Number $GITHUB_RUN_NUMBER"
npx capacitor-set-version set:android -v $APP_VERSION -b $GITHUB_RUN_NUMBER
ionic cap sync android --prod && cd android && ./gradlew bundle
cd .. && jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore belair.keystore android/app/build/outputs/bundle/release/app-release.aab ${{ secrets.KEYSTORE_ALIAS }} -storepass ${{ secrets.KEYSTORE_PASSWORD }}
cd android && fastlane deploy branch:${{ github.ref_name }}
build-deploy-ios:
name: Build iOS & deploy to AppStore
runs-on: marvin
steps:
- uses: actions/checkout@v2
- name: Build and deploy
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_REPO_PASSWORD: ${{ secrets.MATCH_REPO_PASSWORD }}
KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }}
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
APPLE_API_KEY_ISSUER_ID: ${{ secrets.APPLE_API_KEY_ISSUER_ID }}
APPLE_API_KEY_P8_BASE64: ${{ secrets.APPLE_API_KEY_P8_BASE64 }}
run: |
echo "${{ secrets.GOOGLE_SVC_PLIST }}" | base64 -d > ios/App/App/GoogleService-Info.plist
export NVM_DIR="$HOME/.nvm"
source $(brew --prefix nvm)/nvm.sh
nvm use
npm install -g @ionic/cli
npm install -g @capacitor/cli
npm i
export APP_VERSION=$(./tools/version-ios.sh)
echo "Version $APP_VERSION, Build Number $GITHUB_RUN_NUMBER"
npx capacitor-set-version set:ios -v $APP_VERSION -b $GITHUB_RUN_NUMBER
ionic cap sync ios --prod
cd ios/App && fastlane deploy