@@ -19,10 +19,6 @@ inputs:
1919 description : Whether to sign the build artifact ("YES" or "NO")
2020 required : false
2121 default : " NO"
22- fastlane_deploy_key :
23- description : SSH private key for Fastlane Match
24- required : false
25- default : " "
2622 AC_USERNAME :
2723 description : App Store Connect user name
2824 required : false
@@ -31,28 +27,17 @@ inputs:
3127 description : App Store Connect password
3228 required : false
3329 default : " not set"
34- MATCH_GIT_URL :
35- description : Git repository URL for Fastlane Match
36- required : false
37- default : " "
38- MATCH_PASSWORD :
39- description : Password for Fastlane Match storage
40- required : false
41- default : " not set"
42- MATCH_STORAGE_MODE :
43- description : Storage mode for Fastlane Match
44- required : false
45- default : " git"
4630runs :
4731 using : composite
4832 steps :
4933 # Note that runs.env doesn't work in composite actions
5034 - name : " Build for Mac: ${{ inputs.configuration }}"
5135 env :
52- CONFIG : Debug
53- ARTIFACT_TAG : Debug
36+ AC_USERNAME : ${{ inputs.AC_USERNAME }}
37+ AC_PASSWORD : ${{ inputs.AC_PASSWORD }}
5438 CODE_SIGNING_ALLOWED : ${{ inputs.sign }}
5539 CODE_SIGNING_REQUIRED : ${{ inputs.sign }}
40+ ARTIFACT_TAG : ${{ inputs.configuration == 'Release_DevID' && 'notarizeMe' || inputs.artifact_tag }}
5641 shell : bash
5742 run : |
5843 set -x # debug trace
7257 # this is outside the "if" to force an error if the file doesn't exist
7358 mv -v "$PKGPATH" "Artifacts/${PKGFILE}"
7459 done
75- # TODO: notarize
60+ - name : " Notarize build artifact"
61+ if : env.ARTIFACT_TAG == 'notarizeMe'
62+ shell : bash
63+ run : |
64+ for PKGPATH in Artifacts/"Scratch Link-notarizeMe"*.pkg; do
65+ PKGFILE="${PKGPATH##*/}"
66+ scratch-link-mac/notarize.sh edu.mit.scratch.scratch-link "${PKGPATH}" "${PKGPATH}" /tmp || rm -f "${PKGPATH}"
67+ mv -v "${PKGPATH}" "Artifacts/${PKGFILE/Scratch Link-notarizeMe/Scratch Link}"
68+ done
0 commit comments