set env variables in action #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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: 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 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: $XCFRAMEWORK_NAME_WITH_EXTENSION | |
path: $XCFRAMEWORK_OUTPUT_DIR/$XCFRAMEWORK_NAME_WITH_EXTENSION |