-
Notifications
You must be signed in to change notification settings - Fork 5
28 lines (22 loc) · 1 KB
/
generate_doc.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: generate_doc
on:
push:
branches: [main]
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "15"
- name: Build
run: |
xcodebuild docbuild -scheme CharcoalSwiftUI -destination generic/platform=iOS -derivedDataPath OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path charcoal-ios --output-path ./docs"
xcodebuild docbuild -scheme CharcoalUIKit -destination generic/platform=iOS -derivedDataPath OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path charcoal-ios --output-path ./docs"
xcodebuild docbuild -scheme Charcoal -destination generic/platform=iOS OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path charcoal-ios --output-path ./docs"
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs