Merge pull request #29 from kiwix/feature/re-use-cd-from-main

Use 1 job
This commit is contained in:
BPH 2024-01-14 19:13:19 +01:00 committed by GitHub
commit 8a5c1cd956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,15 @@ env:
APPLE_STORE_AUTH_KEY_PATH: /tmp/authkey.p8
jobs:
generate:
generate_build_deploy:
runs-on: macos-13
strategy:
fail-fast: false
matrix:
destination:
- platform: macOS
- platform: iOS
xcode_extra: -sdk iphoneos
steps:
- name: Checkout code
@ -77,31 +84,16 @@ jobs:
ls -la
# taken from: kiwix/apple .github/workflows/cd.yml
build_and_deploy:
runs-on: macos-13
needs: generate
strategy:
fail-fast: false
matrix:
destination:
- platform: macOS
- platform: iOS
xcode_extra: -sdk iphoneos
steps:
- name: Set up scheme, version, build_number from files
run: |
pwd()
ls -la
VERSION=$(cat apple/custom/.build_version)
echo "VERSION=$VERSION" >> $GITHUB_ENV
BRAND=$(cat apple/custom/.brand_name)
echo "BRAND=$BRAND" >> $GITHUB_ENV
# taken from: kiwix/apple .github/workflows/cd.yml
- name: Set up variables for build
env:
PLATFORM: ${{ matrix.destination.platform }}