v33.2.1 #398
Workflow file for this run
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
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/checkout@v3.1.0 | |
- name: Checkout Telefonica/github-actions repo | |
uses: actions/checkout@v3.1.0 | |
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/setup-node@v3.6.0 | |
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 }} | |