Skip to content

Commit

Permalink
Merge pull request #39 from kiwix/feature/re-use-cd-from-main
Browse files Browse the repository at this point in the history
Re-use apple main actions, set workspace path
  • Loading branch information
BPerlakiH authored Jan 14, 2024
2 parents 25f05dc + 473dab1 commit 1a3bfbd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 163 deletions.
31 changes: 0 additions & 31 deletions .github/actions/install-cert/action.yml

This file was deleted.

128 changes: 0 additions & 128 deletions .github/actions/xcbuild/action.yml

This file was deleted.

10 changes: 6 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ jobs:

- name: Set up scheme, version, build_number from files
run: |
cd apple
# move the checked out github actions to root folder:
mv apple/.github/ .
BRAND=$(<./custom/.brand_name)
BRAND=$(<./apple/custom/.brand_name)
echo "BRAND=$BRAND" >> $GITHUB_ENV
VERSION=$(<./custom/.version_number)
VERSION=$(<./apple/custom/.version_number)
echo "VERSION=$VERSION" >> $GITHUB_ENV
# taken from: kiwix/apple .github/workflows/cd.yml
Expand Down Expand Up @@ -136,7 +137,7 @@ jobs:
run: echo "${APPLE_STORE_AUTH_KEY}" | base64 --decode -o $APPLE_STORE_AUTH_KEY_PATH

- name: Build xcarchive
uses: ./apple/custom/.github/actions/xcbuild
uses: ./.github/actions/xcbuild
with:
action: archive
xc-destination: generic/platform=${{ matrix.destination.platform }}
Expand All @@ -145,6 +146,7 @@ jobs:
version: ${{ env.VERSION }}
XC_SCHEME: ${{ env.BRAND }}
DOWNLOAD_DEPENDENCIES: false
XC_WORKSPACE: apple/Kiwix.xcodeproj/project.xcworkspace/
# eof custom app specific
APPLE_DEVELOPMENT_SIGNING_CERTIFICATE: ${{ secrets.APPLE_DEVELOPMENT_SIGNING_CERTIFICATE }}
APPLE_DEVELOPMENT_SIGNING_P12_PASSWORD: ${{ secrets.APPLE_DEVELOPMENT_SIGNING_P12_PASSWORD }}
Expand Down

0 comments on commit 1a3bfbd

Please sign in to comment.