57 lines
1.9 KiB
YAML
57 lines
1.9 KiB
YAML
|
name: Build for Develop TestFlight
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- develop
|
||
|
- ci-test
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
name: Build
|
||
|
runs-on: macOS-12
|
||
|
steps:
|
||
|
- name: checkout
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: setup
|
||
|
env:
|
||
|
NotificationEndpointDebug: ${{ secrets.NotificationEndpointDebug }}
|
||
|
NotificationEndpointRelease: ${{ secrets.NotificationEndpointRelease }}
|
||
|
run: exec ./.github/scripts/setup.sh
|
||
|
|
||
|
- name: Import Code-Signing Certificates
|
||
|
uses: Apple-Actions/import-codesign-certs@v1 # https://github.com/Apple-Actions/import-codesign-certs
|
||
|
with:
|
||
|
keychain: build-p12
|
||
|
p12-file-base64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
|
||
|
p12-password: ${{ secrets.P12_PASSWORD }}
|
||
|
|
||
|
- name: Download Provisioning Profiles
|
||
|
uses: Apple-Actions/download-provisioning-profiles@v1 # https://github.com/Apple-Actions/download-provisioning-profiles
|
||
|
with:
|
||
|
bundle-id: org.joinmastodon.app
|
||
|
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
|
||
|
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
|
||
|
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
|
||
|
|
||
|
- name: build
|
||
|
env:
|
||
|
ENV_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
|
||
|
ENV_API_KEY_ID: ${{ secrets.APPSTORE_KEY_ID }}
|
||
|
ENV_API_PRIVATE_KEY: ${{ secrets.APP_STORE_CONNECT_KEY_BASE64 }}
|
||
|
run: exec ./.github/scripts/build-release.sh
|
||
|
|
||
|
- name: Upload TestFlight Build
|
||
|
uses: Apple-Actions/upload-testflight-build@master
|
||
|
with:
|
||
|
app-path: .build/Artifacts/Mastodon.ipa/Mastodon.ipa
|
||
|
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
|
||
|
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
|
||
|
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
|
||
|
|
||
|
- name: Clean up keychain and provisioning profile
|
||
|
if: ${{ always() }}
|
||
|
run: |
|
||
|
security delete-keychain build-p12.keychain-db
|