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
Some checks failed
Test macOS Signing / test-signing (push) Failing after 2m15s
This commit is contained in:
parent
83011e5ad7
commit
aef65a94bb
@ -3,17 +3,17 @@ name: Test macOS Signing
|
||||
on:
|
||||
push:
|
||||
branches: [ozgur/build]
|
||||
workflow_dispatch: # Manual trigger de mümkün olsun
|
||||
workflow_dispatch: # Manual trigger is also available
|
||||
|
||||
jobs:
|
||||
test-signing:
|
||||
runs-on: macos
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
lfs: true
|
||||
fetch-depth: 0
|
||||
# - name: Checkout repository
|
||||
# uses: actions/checkout@v3
|
||||
# with:
|
||||
# lfs: true
|
||||
# fetch-depth: 0
|
||||
|
||||
- name: Download Artifact
|
||||
run: |
|
||||
@ -31,18 +31,32 @@ jobs:
|
||||
# Download the artifact
|
||||
curl -L "$ARTIFACT_URL" -o build.zip
|
||||
|
||||
# Extract to Builds directory
|
||||
unzip -o build.zip -d Builds/Mac/
|
||||
# First unzip - Outer artifact zip file
|
||||
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
|
||||
APP_PATH=$(find Builds/Mac -type d -name "*.app" | head -1)
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
echo "Downloaded app bundle: $APP_PATH"
|
||||
echo "Found app bundle: $APP_PATH"
|
||||
echo "app_path=$APP_PATH" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user