-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IOS-10797 Change Mistica workflows to use the reusable workflows and …
…upload builds to Firebase
- Loading branch information
1 parent
5e191c6
commit 9d756a4
Showing
4 changed files
with
33 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,62 +4,29 @@ on: | |
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
app-center-project: | ||
description: 'App Center app name' | ||
type: choice | ||
options: | ||
- "Internal Enterprise (Mistica-iOS)" | ||
- "Alpha (Mistica-SwiftUI-iOS)" | ||
required: true | ||
inputs: | ||
ref: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
deploy-mistica-catalog: | ||
name: Build enterprise | ||
runs-on: self-hosted-novum-mac | ||
steps: | ||
- name: Set configuration variables | ||
shell: bash | ||
run: | | ||
echo "::group::Setting variables..." | ||
if [ "${{ github.event.inputs.app-center-project }}" = "Internal Enterprise (Mistica-iOS)" ]; then | ||
echo 'APP_CENTER_PROJECT=Mistica-iOS' >> $GITHUB_OUTPUT | ||
elif [ "${{ github.event.inputs.app-center-project }}" = "Alpha (Mistica-SwiftUI-iOS)" ]; then | ||
echo 'APP_CENTER_PROJECT=Mistica-SwiftUI-iOS' >> $GITHUB_OUTPUT | ||
else | ||
# Default value for automatic triggers like `release, `push`, ... | ||
echo 'APP_CENTER_PROJECT=Mistica-iOS' >> $GITHUB_OUTPUT | ||
fi | ||
echo "::endgroup::" | ||
id: variables | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Checkout Telefonica/github-actions repo | ||
uses: actions/[email protected] | ||
with: | ||
repository: Telefonica/github-actions | ||
token: "${{ secrets.NOVUM_PRIVATE_REPOS }}" | ||
path: .github/actions | ||
|
||
- name: Provision Novum Mac for MisticaApp | ||
uses: ./.github/actions/novum/mac-provisioning | ||
with: | ||
setup-ruby: false | ||
brand-variant: MisticaApp | ||
provisioning-profiles: ${{ secrets.MISTICA_CATALOG_ENTERPRISE_PROV_PROFILES }} | ||
certificate-password: ${{ secrets.MISTICA_CATALOG_ENTERPRISE_CERT_PWD }} | ||
apple-system-certs: ${{ secrets.APPLE_CERTS }} | ||
|
||
- name: Export | ||
run: make export | ||
|
||
- name: Setup Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18.13.0 | ||
|
||
- name: Upload ipa to AppCenter | ||
run: npx -p appcenter-cli appcenter distribute release -a Tuenti-Organization/${{ steps.variables.outputs.APP_CENTER_PROJECT }} -f ./build/ios.ipa -g Public --token ${{ secrets.APPCENTER_API_TOKEN }} | ||
|
||
uses: Telefonica/ios-github-workflows/.github/workflows/build-and-export-ipa.yml@main | ||
with: | ||
ref: ${{ inputs.ref || github.ref }} | ||
project-name: "Mistica" | ||
project-path: "MisticaCatalog/MisticaCatalog.xcodeproj" | ||
scheme: "MisticaCatalog" | ||
configuration: "release" | ||
xcode-build-destination: "generic/platform=iOS" | ||
export-destination: "firebase" | ||
export-options: "enterprise.plist" | ||
firebase-app-id: "1:566193653712:ios:07224eb13f3e735f515bd5" | ||
secrets: | ||
CERTIFICATE_BASE64: ${{ secrets.MISTICA_ENTERPRISE_CERTIFICATE }} | ||
CERTIFICATE_PASSWORD: ${{ secrets.MISTICA_ENTERPRISE_P12_PWD }} | ||
APPLE_ENTERPRISE_API_KEY_ID: ${{ secrets.APPLE_ENTERPRISE_API_KEY_ID }} | ||
APPLE_ENTERPRISE_API_PRIVATE_KEY: ${{ secrets.APPLE_ENTERPRISE_API_PRIVATE_KEY }} | ||
APPLE_ENTERPRISE_API_ISSUER_ID: ${{ secrets.APPLE_ENTERPRISE_API_ISSUER_ID }} | ||
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.MISTICA_GOOGLE_APPLICATION_CREDENTIALS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters