forked from mastodon/mastodon-ios
-
Notifications
You must be signed in to change notification settings - Fork 2
74 lines (64 loc) · 2.61 KB
/
develop-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# name: Build for Develop TestFlight
# on:
# push:
# branches:
# - develop
# - release*
# - 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: Install codemagic-cli-tools
# uses: actions/setup-python@v4
# with:
# python-version: '3.10'
# - run: |
# pip3 install codemagic-cli-tools
# - run: |
# codemagic-cli-tools --version || true
# - 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: com.emerge.mastodon
# issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
# api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
# api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
# - name: Build
# env:
# ENV_APP_ID: ${{ secrets.APP_ID }}
# ENV_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
# ENV_API_KEY_ID: ${{ secrets.APPSTORE_KEY_ID }}
# ENV_API_PRIVATE_KEY: ${{ secrets.APPSTORE_PRIVATE_KEY }}
# ENV_API_PRIVATE_KEY_BASE64: ${{ 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: Tag commit
# uses: tvdias/[email protected]
# with:
# repo-token: "${{ secrets.GITHUB_TOKEN }}"
# tag: "${{ env.GITHUB_TAG_NAME }}"
# - name: Clean up keychain and provisioning profile
# if: ${{ always() }}
# run: |
# security delete-keychain build-p12.keychain-db