Skip to content

Commit

Permalink
IOS-10797 Add action to upload builds to Firebase (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbartolome authored Nov 29, 2024
1 parent 323d7da commit 7f3620b
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 2 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build-mistica-catalog-firebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Deploy Mistica Catalog (Firebase)

on:
release:
types: [published]
workflow_dispatch:
inputs:
# The branch, tag or SHA to checkout
ref:
required: false
type: string

jobs:
deploy-mistica-catalog:
name: Build enterprise
runs-on: self-hosted-novum-mac
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Checkout Telefonica/ios-github-workflows repo
uses: actions/checkout@v4
with:
repository: Telefonica/ios-github-workflows
token: "${{ secrets.NOVUM_PRIVATE_REPOS }}"
path: .ios-github-workflows

- name: Setup
id: setup
uses: ./.ios-github-workflows/.github/actions/setup-mac-dependencies
- run: xcodebuild -version

- name: Install certificate and provisioning profiles
id: install-cert-and-prov
uses: ./.ios-github-workflows/.github/actions/install-signing-certificates-and-provisionings
with:
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-base64: ${{ secrets.APPLE_ENTERPRISE_API_PRIVATE_KEY }}
apple-enterprise-api-issuer-id: ${{ secrets.APPLE_ENTERPRISE_API_ISSUER_ID }}

- name: Export
run: make export

- name: Upload to Firebase App Distribution
uses: ./.ios-github-workflows/.github/actions/firebase-upload
with:
ipa-path: ./build/ios.ipa
release-notes: "Mistica Catalog"
tester-groups: ""
app-id: "1:566193653712:ios:07224eb13f3e735f515bd5"
google-application-credentials: ${{ secrets.MISTICA_GOOGLE_APPLICATION_CREDENTIALS }}

- name: Clean up keychain and provisioning profile
if: ${{ always() }}
run: |
security delete-keychain ${{ steps.install-cert-and-prov.outputs.keychain-path }}
rm ~/Library/MobileDevice/Provisioning\ Profiles/* || true
3 changes: 1 addition & 2 deletions .github/workflows/build-mistica-catalog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Mistica Catalog
name: Deploy Mistica Catalog (AppCenter)

on:
release:
Expand Down Expand Up @@ -62,4 +62,3 @@ jobs:

- 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 }}

1 change: 1 addition & 0 deletions .xcode-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.0

0 comments on commit 7f3620b

Please sign in to comment.