-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jason C. Leach <jason.leach@fullboar.ca>
- Loading branch information
Showing
3 changed files
with
147 additions
and
104 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Export Signed iOS Archive | ||
description: Export a signed iOS Archive | ||
|
||
inputs: | ||
artifact_ref: | ||
description: | | ||
The referene ID / name of the uploaded GitHub artifact | ||
stored in GitHub by the upload action. This should | ||
be an xcarchive file compressed with ZIP. | ||
requred: true | ||
certificate: | ||
description: | | ||
The Base64 encoded certificate to use for | ||
signing the archive. This should be in p12 format. | ||
required: true | ||
certificate_password: | ||
description: | | ||
The password for importing the certificate. | ||
requred: true | ||
provisioning_profile: | ||
description: | | ||
The Base64 encoded provisioning profile to use for | ||
signing the archive. This should be in mobileprovision format. | ||
requred: true | ||
ouput_artifacet_ref: | ||
description: | | ||
The reference ID / name of the uploaded GitHub artifact | ||
stored in GitHub by the upload action. | ||
requred: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# - uses: actions/checkout@v2 | ||
|
||
- name: Build Keychain | ||
shell: bash | ||
env: | ||
CERTIFICATE: ${{ inputs.certificate }} | ||
run: | | ||
scripts/makekc.sh ${{ inputs.certificate_password }} | ||
# https://docs.github.com/en/actions/deployment/deploying-xcode-applications/installing-an-apple-certificate-on-macos-runners-for-xcode-development | ||
- name: Create Provisioning Profile | ||
shell: bash | ||
env: | ||
PROVISIONING_PROFILE: ${{ inputs.provisioning_profile }} | ||
run: | | ||
scripts/makepp.sh | ||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ inputs.artifact_ref }} | ||
|
||
- name: Unzip artifact | ||
shell: bash | ||
run: | | ||
unzip ${{ inputs.artifact_ref }}.zip | ||
- name: Sign & Export | ||
shell: bash | ||
run: | | ||
xcodebuild \ | ||
-exportArchive \ | ||
-archivePath AriesBifold.xcarchive \ | ||
-exportPath export \ | ||
-exportOptionsPlist ../../options.plist \ | ||
-verbose | ||
- name: Upload signed artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.output_artifact_ref }} | ||
path: export/BCWallet.ipa | ||
if-no-files-found: error | ||
retention-days: 1 |
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
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