Skip to content

Commit d1d7e49

Browse files
authored
Update build-and-deployment.yml
1 parent 40f0ef0 commit d1d7e49

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/build-and-deployment.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,11 @@ jobs:
3434
xcode-version: '16.0'
3535
- name: DocC 문서 빌드
3636
run: |
37-
xcodebuild -scheme blog \
38-
-derivedDataPath /tmp/docbuild \
39-
-destination 'generic/platform=macOS';
40-
$(xcrun --find docc) process-archive \
41-
transform-for-static-hosting ./.build/plugins/Swift-DocC/outputs/intermediates/blog.doccarchive \
42-
--hosting-base-path swift-docc-blog \
43-
--output-path docs;
44-
echo "<script>window.location.href += \"/documentation/blog\"</script>" > docs/index.html
37+
swift package --allow-writing-to-directory ./docs \
38+
generate-documentation --target blog --disable-indexing \
39+
--output-path ./docs \
40+
--transform-for-static-hosting \
41+
--hosting-base-path swift-docc-blog
4542
- name: artifact 업로드
4643
uses: actions/upload-pages-artifact@v3
4744
with:

0 commit comments

Comments
 (0)