chore: Add xcframework signing for Capacitor and Cordova #22
Workflow file for this run
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: Pre-Release | |
on: | |
push: | |
branches: | |
- "release/**" | |
jobs: | |
build: | |
runs-on: macos-14 | |
timeout-minutes: 30 | |
steps: | |
- run: sudo xcode-select --switch /Applications/Xcode_15.1.app | |
- uses: actions/checkout@v4 | |
- name: Install build dependencies | |
run: | | |
gem install cocoapods xcpretty | |
brew install ghr | |
- name: Assign version to RELEASE_VERSION environment variable | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/*/}" >> $GITHUB_ENV | |
- name: Build Capacitor and Cordova | |
run: ./build-cap $RELEASE_VERSION | |
- name: Sign Capacitor xcframework | |
uses: ionic-team/sign-xcframework@main | |
with: | |
cert-token: ${{ secrets.XCFRAMEWORK_SIGNING_TOKEN }} | |
xcframework-path: Capacitor.xcframework | |
- name: Sign Cordova xcframework | |
uses: ionic-team/sign-xcframework@main | |
with: | |
cert-token: ${{ secrets.XCFRAMEWORK_SIGNING_TOKEN }} | |
xcframework-path: Cordova.xcframework | |
- name: Package Capacitor and Cordova | |
run: ./package-cap $RELEASE_VERSION | |
- name: Push manifest update | |
uses: EndBug/add-and-commit@v9 | |
- name: Create Draft Release | |
run: ghr -token ${{ secrets.GITHUB_TOKEN }} -name ${{ env.RELEASE_VERSION }} -draft -replace ${{ env.RELEASE_VERSION }} frameworks |