Skip to content

Commit 99e1be4

Browse files
committed
use archive-docc.sh
1 parent c43acce commit 99e1be4

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/deploy_docc.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ jobs:
2424

2525
- name: Build DocC
2626
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
3228
3329
- name: Upload artifact
3430
uses: actions/upload-pages-artifact@v3

archive-docc.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

0 commit comments

Comments
 (0)