chore(ci): update Vision OS workflow to macOS 15 and XR OS 2.1 #83
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: Documentation | |
on: | |
release: | |
types: [published] | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy_docs: | |
name: Generate Documentation | |
runs-on: macos-latest | |
steps: | |
- # Checkout the repository | |
uses: actions/checkout@v4 | |
- # Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- # Adapt the default title by adding the reference name from GitHub | |
name: Patch Title | |
run: | | |
ESCAPED_REF_NAME=$(echo "${{ github.ref }}" | sed 's/[\/&]/\\&/g') | |
sed -i.bak "s/title:\(.*\)/title:\1 ($ESCAPED_REF_NAME)/g" .jazzy.yaml | |
- # Generate Documentation | |
name: Generate | |
run: | | |
SDK_PATH=`xcrun --sdk iphonesimulator --show-sdk-path` | |
SDK_VERSION=`xcrun --sdk iphonesimulator --show-sdk-version` | |
bundle exec jazzy \ | |
--build-tool-arguments "--sdk,${SDK_PATH},-Xswiftc,-sdk,-Xswiftc,$SDK_PATH,-Xswiftc,-target,-Xswiftc,arm64-apple-ios${SDK_VERSION}-simulator" | |
- # Small Jazzy fixes for GitHub Pages | |
name: Fix Invalid URLs | |
run: | | |
cd docs | |
touch .nojekyll | |
- # Commit newly generated docs | |
name: Commit Documentation Files | |
if: github.event_name != 'pull_request' | |
run: | | |
cd docs | |
git init | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Deploying Updated Jazzy Docs" | |
- # Publish generated docs to the GitHub pages branch | |
name: Push changes | |
uses: ad-m/github-push-action@master | |
if: github.event_name != 'pull_request' | |
with: | |
directory: docs | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
force: true |