Skip to content

Commit

Permalink
Add back .keychain
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshayKalose committed Dec 4, 2024
1 parent 04e7776 commit 5976e60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/xcode-notarization-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ runs:
id: create-keychain
run: |
# create temporary keychain
KEYCHAIN_PATH=$RUNNER_TEMP/notarization
KEYCHAIN_PATH=$RUNNER_TEMP/notarization.keychain
KEYCHAIN_PASS=$(uuidgen)
echo "keychain-path-output=$(echo $KEYCHAIN_PATH)" >> $GITHUB_OUTPUT
echo "keychain-path-output=$(echo $RUNNER_TEMP)/notarization" >> $GITHUB_OUTPUT
security create-keychain -p "${KEYCHAIN_PASS}" ${KEYCHAIN_PATH}
security set-keychain-settings -lut 900 ${KEYCHAIN_PATH}
security unlock-keychain -p "${KEYCHAIN_PASS}" ${KEYCHAIN_PATH}
Expand Down Expand Up @@ -86,7 +86,7 @@ runs:
shell: bash
- name: Notarize ${{ inputs.build-name }}.dmg
run: |
KEYCHAIN_PATH=$RUNNER_TEMP/notarization
KEYCHAIN_PATH=$RUNNER_TEMP/notarization.keychain
xcrun notarytool submit './build/bin/${{ inputs.build-name }}.dmg' --keychain-profile "${{ inputs.keychain-profile }}" --keychain "${KEYCHAIN_PATH}" --wait
shell: bash
- name: Staple ${{ inputs.build-name }}.dmg
Expand All @@ -101,6 +101,6 @@ runs:
shell: bash
- name: Cleanup
if: ${{ always() }}
run: security delete-keychain $RUNNER_TEMP/notarization
run: security delete-keychain $RUNNER_TEMP/notarization.keychain
shell: bash
continue-on-error: true

0 comments on commit 5976e60

Please sign in to comment.