Skip to content

Commit

Permalink
ci: attempt to notarize macOS Release_DevID
Browse files Browse the repository at this point in the history
  • Loading branch information
cwillisf committed Dec 6, 2023
1 parent fc9f5d6 commit 9c6b08b
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/actions/macos-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ inputs:
description: Whether to sign the build artifact ("YES" or "NO")
required: false
default: "NO"
fastlane_deploy_key:
description: SSH private key for Fastlane Match
required: false
default: ""
AC_USERNAME:
description: App Store Connect user name
required: false
Expand All @@ -31,28 +27,17 @@ inputs:
description: App Store Connect password
required: false
default: "not set"
MATCH_GIT_URL:
description: Git repository URL for Fastlane Match
required: false
default: ""
MATCH_PASSWORD:
description: Password for Fastlane Match storage
required: false
default: "not set"
MATCH_STORAGE_MODE:
description: Storage mode for Fastlane Match
required: false
default: "git"
runs:
using: composite
steps:
# Note that runs.env doesn't work in composite actions
- name: "Build for Mac: ${{ inputs.configuration }}"
env:
CONFIG: Debug
ARTIFACT_TAG: Debug
AC_USERNAME: ${{ inputs.AC_USERNAME }}
AC_PASSWORD: ${{ inputs.AC_PASSWORD }}
CODE_SIGNING_ALLOWED: ${{ inputs.sign }}
CODE_SIGNING_REQUIRED: ${{ inputs.sign }}
ARTIFACT_TAG: ${{ inputs.configuration == 'Release_DevID' && 'notarizeMe' || inputs.artifact_tag }}
shell: bash
run: |
set -x # debug trace
Expand All @@ -72,4 +57,12 @@ runs:
# this is outside the "if" to force an error if the file doesn't exist
mv -v "$PKGPATH" "Artifacts/${PKGFILE}"
done
# TODO: notarize
- name: "Notarize build artifact"
if: env.ARTIFACT_TAG == 'notarizeMe'
shell: bash
run: |
for PKGPATH in Artifacts/"Scratch Link-notarizeMe"*.pkg; do
PKGFILE="${PKGPATH##*/}"
scratch-link-mac/notarize.sh edu.mit.scratch.scratch-link "${PKGPATH}" "${PKGPATH}" /tmp || rm -f "${PKGPATH}"
mv -v "${PKGPATH}" "Artifacts/${PKGFILE/Scratch Link-notarizeMe/Scratch Link}"
done

0 comments on commit 9c6b08b

Please sign in to comment.