sign on composite action

This commit is contained in:
Alessandro Muntoni 2023-06-23 12:17:24 +02:00
parent 96c778446e
commit 723e39cdf3
2 changed files with 7 additions and 11 deletions

View File

@ -5,6 +5,7 @@ inputs:
mac-certificate:
description: 'MacOS Certificate'
required: false
default: ''
mac-certificate-pssw:
description: 'MacOS Certificate Password'
required: false
@ -14,8 +15,9 @@ runs:
steps:
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Try
if: ${{ runner.os == 'macOS' }}
shell: bash
run: |
echo "Hello World ${{ inputs.runner-os }}"
- name: Set CodeSign Certificate macOS
if: ${{ runner.os == 'macOS' && inputs.mac-certificate != ''}}
uses: apple-actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ inputs.mac-certificate }}
p12-password: ${{ inputs.mac-certificate-pssw }}

View File

@ -27,12 +27,6 @@ jobs:
with:
mac-certificate: $MAC_CERT
mac-certificate-pssw: $MAC_CERT_PSSW
- name: Set CodeSign Certificate macOS
if: runner.os == 'macOS' && env.MAC_CERT != null
uses: apple-actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.MACOS_CERTIFICATE }}
p12-password: ${{ secrets.MACOS_CERTIFICATE_PSSW }}
- name: Set CodeSign Certificate Windows
if: runner.os == 'Windows' && env.WIN_CERT != null
run: |