-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 945 Bytes
/
docc.yaml
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
29
30
31
32
name: generate-documentation
on:
push:
branches:
- main
jobs:
generate-docs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: swift-actions/setup-swift@v1
with:
swift-version: "5.9"
- name: generate-documentation
# https://apple.github.io/swift-docc-plugin/documentation/swiftdoccplugin/generating-documentation-for-hosting-online/
run: >
swift package
--allow-writing-to-directory ./docs
generate-documentation
--output-path ./docs
--hosting-base-path AccelerateArray
--disable-indexing
--transform-for-static-hosting
- name: generate theme-settings.json
run: echo '' > theme-settings.json
working-directory: docs
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs