fix(workflows): improve macOS signing workflow by adding nested artifact extraction and enhanced error handling
Some checks failed
Test macOS Signing / test-signing (push) Failing after 2m15s

This commit is contained in:
Ozgur 2025-04-13 14:56:02 +02:00
parent 83011e5ad7
commit aef65a94bb
No known key found for this signature in database
GPG Key ID: 66CDF27505A35546

View File

@ -3,17 +3,17 @@ name: Test macOS Signing
on: on:
push: push:
branches: [ozgur/build] branches: [ozgur/build]
workflow_dispatch: # Manual trigger de mümkün olsun workflow_dispatch: # Manual trigger is also available
jobs: jobs:
test-signing: test-signing:
runs-on: macos runs-on: macos
steps: steps:
- name: Checkout repository # - name: Checkout repository
uses: actions/checkout@v3 # uses: actions/checkout@v3
with: # with:
lfs: true # lfs: true
fetch-depth: 0 # fetch-depth: 0
- name: Download Artifact - name: Download Artifact
run: | run: |
@ -31,18 +31,32 @@ jobs:
# Download the artifact # Download the artifact
curl -L "$ARTIFACT_URL" -o build.zip curl -L "$ARTIFACT_URL" -o build.zip
# Extract to Builds directory # First unzip - Outer artifact zip file
unzip -o build.zip -d Builds/Mac/ unzip -o build.zip -d temp_extract/
# Second unzip - Inner macOS app package
echo "Extracting inner zip file..."
INNER_ZIP=$(find temp_extract -name "*.zip" | head -1)
if [[ -z "$INNER_ZIP" ]]; then
echo "Could not find inner zip in artifact"
exit 1
fi
echo "Found inner zip: $INNER_ZIP"
unzip -o "$INNER_ZIP" -d Builds/Mac/
# Find extracted app bundle # Find extracted app bundle
APP_PATH=$(find Builds/Mac -type d -name "*.app" | head -1) APP_PATH=$(find Builds/Mac -type d -name "*.app" | head -1)
if [[ -z "$APP_PATH" ]]; then if [[ -z "$APP_PATH" ]]; then
echo "Could not find app bundle in downloaded artifact" echo "Could not find app bundle in extracted files"
echo "Directory contents:"
ls -la Builds/Mac/
exit 1 exit 1
fi fi
echo "Downloaded app bundle: $APP_PATH" echo "Found app bundle: $APP_PATH"
echo "app_path=$APP_PATH" >> $GITHUB_ENV echo "app_path=$APP_PATH" >> $GITHUB_ENV
shell: bash shell: bash