v1.1.4 #13
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: Update Docc documentation | |
on: | |
release: | |
types: [published] | |
jobs: | |
update-api-documentation: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- name: generate doc files | |
run: xcodebuild docbuild -scheme ApiVideoPlayer -derivedDataPath ../api.video-swift-player-build -destination 'platform=iOS Simulator,name=iPhone 12' | |
- name: create docs folder | |
run: mkdir ../Docs | |
- name: process docarchive | |
run: $(xcrun --find docc) process-archive \transform-for-static-hosting ../api.video-swift-player-build/Build/Products/Debug-iphonesimulator/ApiVideoPlayer.doccarchive \--output-path ../Docs \--hosting-base-path /api.video-swift-player | |
- name: Deploy documentation to Github Pages | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: ../Docs | |