Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ jobs:
- name: Install dependencies
run: tuist install

- name: Restore Firebase configuration
env:
GOOGLE_SERVICE_INFO_PLIST: ${{ secrets.GOOGLE_SERVICE_INFO_PLIST }}
run: |
set -euo pipefail
test -n "$GOOGLE_SERVICE_INFO_PLIST"
FIREBASE_PLIST=Projects/App/Resources/GoogleService-Info.plist
printf '%s\n' "$GOOGLE_SERVICE_INFO_PLIST" > "$FIREBASE_PLIST"
plutil -lint "$FIREBASE_PLIST"
test "$(/usr/libexec/PlistBuddy -c 'Print :BUNDLE_ID' "$FIREBASE_PLIST")" = 'com.bookonios.Book-on-iOS-V1'

- name: Generate project
run: tuist generate --no-open

Expand Down Expand Up @@ -75,6 +86,13 @@ jobs:
-archivePath $RUNNER_TEMP/Book-on-iOS-V1.xcarchive \
| xcpretty && exit ${PIPESTATUS[0]}

- name: Verify bundled Firebase configuration
run: |
set -euo pipefail
APP_PATH=$(find "$RUNNER_TEMP/Book-on-iOS-V1.xcarchive/Products/Applications" -maxdepth 1 -name '*.app' -print -quit)
test -n "$APP_PATH"
test "$(plutil -convert xml1 -o - Projects/App/Resources/GoogleService-Info.plist)" = "$(plutil -convert xml1 -o - "$APP_PATH/GoogleService-Info.plist")"

- name: Export IPA
env:
EXPORT_OPTIONS_PLIST: ${{ secrets.EXPORT_OPTIONS_PLIST }}
Expand Down
Loading