Skip to content

Test expressions

Test expressions #35

Workflow file for this run

name: swift-create-sign-upload-xcframework
on:
push:
branches:
- develop
env:
XCFRAMEWORK_OUTPUT_DIR: .xcframework
XCFRAMEWORK_NAME: UIViewKit
XCFRAMEWORK_NAME_WITH_EXTENSION: UIViewKit.xcframework
jobs:
create-xcframework:
runs-on: macos-latest
steps:
- name: Test Paths
run: ls -a
- name: Test Expression
run: echo ${{ XCFRAMEWORK_OUTPUT_DIR }}

Check failure on line 20 in .github/workflows/dev.yml

View workflow run for this annotation

GitHub Actions / swift-create-sign-upload-xcframework

Invalid workflow file

The workflow is not valid. .github/workflows/dev.yml (Line: 20, Col: 14): Unrecognized named-value: 'XCFRAMEWORK_OUTPUT_DIR'. Located at position 1 within expression: XCFRAMEWORK_OUTPUT_DIR .github/workflows/dev.yml (Line: 44, Col: 29): Unexpected symbol: '$XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME_WITH_EXTENSION'. Located at position 1 within expression: $XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME_WITH_EXTENSION
- name: Import Code-Signing Certificates
uses: Apple-Actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.CERTIFICATE_P12 }}
p12-password: ${{ secrets.CERTIFICATE_P12_PASSWORD }}
- name: Checkout Project
uses: actions/checkout@v4.1.4
- name: Test Content of current folder
run: ls -a
- name: Test Path echo
run: echo $XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME_WITH_EXTENSION
- name: Build XCFramework
run: ./buildxcf.sh
- name: Sign XCFramework
run: |
codesign -s "iPhone Distribution: Blazej SLEBODA (43VBDTY4E3)" \
--force \
--deep \
-- $XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME_WITH_EXTENSION
- name: Asset's path
run: ls -a $XCFRAMEWORK_OUTPUT_DIR
- name: Upload XCFramework as Artifact
env:
XCFRAMEWORK_PATH: ${{ $XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME_WITH_EXTENSION }}
uses: actions/upload-artifact@v4
with:
name: UIViewKit.xcframework
path: ${{ XCFRAMEWORK_PATH }}