-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
69 lines (63 loc) · 2.83 KB
/
action.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
name: macOS Sign, Package, and Notarize
author: halprin
description: Signs, package into a DMG, and notarize macOS binaries.
inputs:
path-to-binary:
description: Path to the binary to sign, package, and notarize.
required: true
signing-identity:
description: The signing certificate identity used to sign the binary and DMG.
required: true
apple-id:
description: The Apple ID to login for notarization. This and the next two inputs are required together, or app-store-connect-key and its next two inputs are required together.
required: false
app-specific-password:
description: The app-specific password used for the Apple ID for notarization. This is a secret; make sure to pass in the value using GitHub Actions' secret functionality!
required: false
apple-developer-team-id:
description: The Apple developer team ID used in notarization.
required: false
app-store-connect-key:
description: The base64 encoded version of the .p8 file from App Store Connect. For notarization. This and the next two inputs are required together, or apple-id and its next two inputs are required together. This is a secret; make sure to pass in the value using GitHub Actions' secret functionality!
required: false
app-store-connect-key-id:
description: The key ID assigned to the key from App Store Connect. For notarization.
required: false
app-store-connect-issuer-id:
description: The issuer ID assigned to your integrations in App Store Connect. For notarization.
required: false
extra-files:
description: Space deliminated extra files to include in the DMG in addition to the binary.
required: true
archive-disk-name:
description: The name of the DMG disk volume.
required: true
archive-file-path:
description: The path where the DMG disk file is written.
required: true
runs:
using: "composite"
steps:
- name: Set GitHub Action Path
run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
shell: bash
env:
GITHUB_ACTION_PATH: ${{ github.action_path }}
- name: Sign, Package, and Notarize
shell: bash
run: stamp.sh
env:
PATH_TO_BINARY: ${{ inputs.path-to-binary }}
SIGNING_IDENTITY: ${{ inputs.signing-identity }}
APPLE_ID: ${{ inputs.apple-id }}
APP_SPECIFIC_PASSWORD: ${{ inputs.app-specific-password }}
APPLE_DEVELOPER_TEAM_ID: ${{ inputs.apple-developer-team-id }}
APP_STORE_CONNECT_KEY: ${{ inputs.app-store-connect-key }}
APP_STORE_CONNECT_KEY_ID: ${{ inputs.app-store-connect-key-id }}
APP_STORE_CONNECT_ISSUER_ID: ${{ inputs.app-store-connect-issuer-id }}
EXTRA_FILES: ${{ inputs.extra-files }}
ARCHIVE_DISK_NAME: ${{ inputs.archive-disk-name }}
ARCHIVE_FILE_PATH: ${{ inputs.archive-file-path }}
branding:
icon: award
color: purple