Automate Documentation Publishing in Release Workflow #1898
This file contains hidden or 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: Build | |
| on: [pull_request] | |
| concurrency: | |
| group: build-${{ github.event.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| cocoapods: | |
| name: CocoaPods | |
| runs-on: macos-26 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| - name: Select Xcode Version | |
| run: sudo xcode-select -switch /Applications/Xcode_26.0.1.app/Contents/Developer | |
| - name: Run pod lib lint | |
| run: pod lib lint | |
| spm: | |
| name: Swift Package Manager | |
| runs-on: macos-26 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| - name: Select Xcode Version | |
| run: sudo xcode-select -switch /Applications/Xcode_26.0.1.app/Contents/Developer | |
| - name: Use current branch | |
| run: sed -i '' 's/branch = .*/branch = \"'"${GITHUB_HEAD_REF//\//\/}"'\";/' SampleApps/SPMTest/SPMTest.xcodeproj/project.pbxproj | |
| - name: Run swift package resolve | |
| run: cd SampleApps/SPMTest && swift package resolve | |
| - name: Build & archive SPMTest | |
| run: xcodebuild -project 'SampleApps/SPMTest/SPMTest.xcodeproj' -scheme 'SPMTest' clean build archive CODE_SIGNING_ALLOWED=NO | |