mirror of
https://github.com/kiwix/kiwix-apple-custom.git
synced 2025-09-25 14:05:08 -04:00
Merge pull request #29 from kiwix/feature/re-use-cd-from-main
Use 1 job
This commit is contained in:
commit
8a5c1cd956
26
.github/workflows/cd.yml
vendored
26
.github/workflows/cd.yml
vendored
@ -15,8 +15,15 @@ env:
|
|||||||
APPLE_STORE_AUTH_KEY_PATH: /tmp/authkey.p8
|
APPLE_STORE_AUTH_KEY_PATH: /tmp/authkey.p8
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate:
|
generate_build_deploy:
|
||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
destination:
|
||||||
|
- platform: macOS
|
||||||
|
- platform: iOS
|
||||||
|
xcode_extra: -sdk iphoneos
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@ -77,24 +84,8 @@ jobs:
|
|||||||
ls -la
|
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
|
- name: Set up scheme, version, build_number from files
|
||||||
run: |
|
run: |
|
||||||
pwd()
|
|
||||||
ls -la
|
ls -la
|
||||||
VERSION=$(cat apple/custom/.build_version)
|
VERSION=$(cat apple/custom/.build_version)
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
@ -102,6 +93,7 @@ jobs:
|
|||||||
BRAND=$(cat apple/custom/.brand_name)
|
BRAND=$(cat apple/custom/.brand_name)
|
||||||
echo "BRAND=$BRAND" >> $GITHUB_ENV
|
echo "BRAND=$BRAND" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
# taken from: kiwix/apple .github/workflows/cd.yml
|
||||||
- name: Set up variables for build
|
- name: Set up variables for build
|
||||||
env:
|
env:
|
||||||
PLATFORM: ${{ matrix.destination.platform }}
|
PLATFORM: ${{ matrix.destination.platform }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user