Refine app path search in main.yml workflow
Updated app location search logic in workflow.
This commit is contained in:
parent
024f6f6455
commit
21427db884
1 changed files with 8 additions and 4 deletions
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
|
@ -51,12 +51,16 @@ jobs:
|
|||
CODE_SIGNING_ALLOWED=NO \
|
||||
ENABLE_BITCODE=NO
|
||||
|
||||
- name: Locate app
|
||||
run: |
|
||||
echo "=== DerivedData ==="
|
||||
find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" || echo "nothing in DerivedData"
|
||||
echo "=== runner work ==="
|
||||
find /Users/runner/work -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "node_modules" || echo "nothing in runner/work"
|
||||
|
||||
- name: Package IPA
|
||||
run: |
|
||||
APP_PATH=$(find "$RUNNER_TEMP/DerivedData/Build/Products" -name "*.app" -type d | grep -v "\.xctest" | grep -v "simulator" | head -1)
|
||||
if [ -z "$APP_PATH" ]; then
|
||||
APP_PATH=$(find "$RUNNER_TEMP/DerivedData" -name "*.app" -type d | grep -v "\.xctest" | grep -v "simulator" | head -1)
|
||||
fi
|
||||
APP_PATH=$(find /Users/runner -name "*.app" -type d 2>/dev/null | grep -v "\.xctest" | grep -v "node_modules" | grep -v "Xcode.app" | grep -v "CoreSimulator" | grep -v "Cellar" | head -1)
|
||||
echo "APP_PATH: $APP_PATH"
|
||||
mkdir -p Payload
|
||||
cp -r "$APP_PATH" Payload/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue