File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,13 +21,10 @@ curl -L https://developer.apple.com/certificationauthority/AppleWWDRCA.cer > App
2121security import AppleWWDRCA.cer \
2222 -k ~ /Library/Keychains/$KEY_CHAIN \
2323 -T /usr/bin/codesign -T /usr/bin/productsign
24- security import DeveloperIDApplication.cer \
25- -k ~ /Library/Keychains/$KEY_CHAIN \
26- -T /usr/bin/codesign -T /usr/bin/productsign
27- security import DeveloperIDInstaller.cer \
28- -k ~ /Library/Keychains/$KEY_CHAIN \
24+ security import DeveloperIDApplication.p12 \
25+ -k ~ /Library/Keychains/$KEY_CHAIN -P $KEY_PASSWORD \
2926 -T /usr/bin/codesign -T /usr/bin/productsign
30- security import key .p12 \
27+ security import DeveloperIDInstaller .p12 \
3128 -k ~ /Library/Keychains/$KEY_CHAIN -P $KEY_PASSWORD \
3229 -T /usr/bin/codesign -T /usr/bin/productsign
3330security unlock-keychain -p travis $KEY_CHAIN
Original file line number Diff line number Diff line change 22
33set -ex -o xtrace
44
5- if [ -n " $PASS_SECRETS_TAR_ENC " ]; then
5+ if [ -n " $KEY_PASSWORD " ]; then
66 .github/remove_signing_key.sh
77fi
Original file line number Diff line number Diff line change 1111export PATH=" /usr/local/opt/ccache/libexec:$PATH "
1212git clone https://github.com/frankmorgner/OpenSCToken.git
1313
14- if [ -n " $PASS_SECRETS_TAR_ENC " ]; then
15- gpg --quiet --batch --yes --decrypt --passphrase=" $PASS_SECRETS_TAR_ENC " --output .github/secrets.tar .github/secrets.tar.gpg
14+ if [ -n " $KEY_PASSWORD " ]; then
15+ echo $DEV_ID_APPLICATION | base64 --decode > .github/DeveloperIDApplication.p12
16+ echo $DEV_ID_INSTALLER | base64 --decode > .github/DeveloperIDInstaller.p12
1617 .github/add_signing_key.sh;
1718else
1819 unset CODE_SIGN_IDENTITY INSTALLER_SIGN_IDENTITY;
Original file line number Diff line number Diff line change 2626 - uses : actions/checkout@v5
2727 - run : .github/setup-macos.sh
2828 env :
29- KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
30- PASS_SECRETS_TAR_ENC : ${{ secrets.PASS_SECRETS_TAR_ENC }}
29+ KEY_PASSWORD : ${{ secrets.DEV_ID_PASSWORD }}
30+ DEV_ID_INSTALLER : ${{ secrets.DEV_ID_INSTALLER }}
31+ DEV_ID_APPLICATION : ${{ secrets.DEV_ID_APPLICATION }}
3132 - name : Checkout OpenSSL sources
3233 uses : actions/checkout@v5
3334 with :
@@ -50,17 +51,16 @@ jobs:
5051 DEVELOPMENT_TEAM : ${{ secrets.DEVELOPMENT_TEAM }}
5152 INSTALLER_SIGN_IDENTITY : ${{ secrets.INSTALLER_SIGN_IDENTITY }}
5253 - name : Cache build artifacts
53- uses : actions/upload-artifact@v4
54+ uses : actions/upload-artifact@v5
5455 with :
5556 name : opensc-build-${{ matrix.os }}
5657 path :
5758 OpenSC*.dmg
5859 - run : .github/cleanup-macos.sh
5960 env :
60- KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
61- PASS_SECRETS_TAR_ENC : ${{ secrets.PASS_SECRETS_TAR_ENC }}
61+ KEY_PASSWORD : ${{ secrets.DEV_ID_PASSWORD }}
6262 - name : Upload test logs
63- uses : actions/upload-artifact@v4
63+ uses : actions/upload-artifact@v5
6464 if : failure()
6565 with :
6666 name : ${{ matrix.os }}-logs
You can’t perform that action at this time.
0 commit comments