forked from eatvio/eatvio_app
46 lines
1.5 KiB
YAML
46 lines
1.5 KiB
YAML
name: "Build Test Flight"
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- test-flight
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [macos-arm64]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Delete existing keychain if present
|
|
run: |
|
|
if security list-keychains | grep -q "signing_temp.keychain"; then
|
|
security delete-keychain signing_temp.keychain
|
|
fi
|
|
|
|
- name: Import code sign
|
|
uses: mso7nueh/import-codesign-certs@v1
|
|
env:
|
|
KEYCHAIN_PATH: ${{ runner.temp }}/signing_temp.keychain
|
|
with:
|
|
keychain-path: ${{ env.KEYCHAIN_PATH }}
|
|
p12-file-base64: ${{ secrets.CERTIFICATES_FILE_BASE64 }}
|
|
p12-password: ${{ secrets.CERTIFICATES_PASSWORD }}
|
|
|
|
- name: Download provisioning
|
|
uses: mso7nueh/apple-provisioning-profiles-downloader@v1.0.8
|
|
with:
|
|
profile-type: IOS_APP_STORE
|
|
bundle-id: com.eatvioapp.app
|
|
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
|
|
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
|
|
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
|
|
|
|
- run: ./Build-tf
|
|
|
|
- name: Upload to TestFlight
|
|
uses: mso7nueh/upload-testflight-build@master
|
|
with:
|
|
app-path: .build/Artifacts/EatvioApp.ipa/EatvioApp.ipa
|
|
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
|
|
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
|
|
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }} |