From be423a9d724544ebc72e45b0d206b0eff2c238eb Mon Sep 17 00:00:00 2001 From: Clement Date: Thu, 26 Sep 2024 17:26:14 +0800 Subject: [PATCH] chore: workflow, codesign --- .github/workflows/build.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 234a9f5..ec4d6a1 100755 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,7 +7,7 @@ permissions: read-all env: XCODE_PROJECT: "approf.xcodeproj" XCODE_SCHEME: "approf" - CODE_SIGN_IDENTITY: "-" + CODE_SIGN_IDENTITY: "${{ secrets.CODE_SIGN_IDENTITY }}" BUILD_DIR: "build" XCODE_ARCHIVE: "approf.xcarchive" APP_NAME: "approf.app" @@ -28,6 +28,11 @@ jobs: - name: Allow macro run: | defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES + - name: Install certs + uses: apple-actions/import-codesign-certs@v3 + with: + p12-file-base64: ${{ secrets.CERTIFICATES_P12 }} + p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }} - name: Build run: xcodebuild -project "$XCODE_PROJECT" -scheme "$XCODE_SCHEME" archive CODE_SIGN_IDENTITY="$CODE_SIGN_IDENTITY" -archivePath "$BUILD_DIR/$XCODE_ARCHIVE" - name: Export