Skip to content

Deploy Mistica Catalog #384

Deploy Mistica Catalog

Deploy Mistica Catalog #384

name: Deploy Mistica Catalog
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
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 }}