File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 24
24
25
25
- name : Build DocC
26
26
run : |
27
- $(xcrun --find docc) convert \
28
- --transform-for-static-hosting \
29
- --hosting-base-path SwiftUIViewCodingGuidelines \
30
- --output-path ./docs \
31
- Sources/SwiftUIViewCodingGuidelines/Guidelines.docc
27
+ ./archive-docc.sh
32
28
33
29
- name : Upload artifact
34
30
uses : actions/upload-pages-artifact@v3
Original file line number Diff line number Diff line change
1
+ # /usr/bin/env bash -euo pipefail
2
+
3
+ DOCC_COMMAND=" /usr/bin/xcrun docc"
4
+ DOCC_ARCHIVE=" Guidelines.doccarchive"
5
+
6
+ $DOCC_COMMAND convert Guidelines.docc \
7
+ --fallback-display-name SwiftUIViewCodingGuidelines \
8
+ --fallback-bundle-identifier org.cybozu.SwiftUIViewCodingGuidelines \
9
+ --fallback-bundle-version 1 \
10
+ --output-dir $DOCC_ARCHIVE
11
+
12
+ $DOCC_COMMAND process-archive transform-for-static-hosting \
13
+ --output-path ./docs \
14
+ $DOCC_ARCHIVE
You can’t perform that action at this time.
0 commit comments