-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (24 loc) · 1.12 KB
/
update-documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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