Skip to content

Commit 5a50032

Browse files
committed
Adding documentation building to CI
1 parent 596e173 commit 5a50032

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/documentation.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,33 @@ name: Documentation
33
on:
44
push:
55
branches:
6-
- main
6+
- add-swift-docc # release/4_0
7+
# ^ for now, we only want to use the v4.0 release branch.
78

89
jobs:
910
build:
1011
runs-on: ubuntu-latest
1112

1213
steps:
1314
- uses: actions/checkout@v3
15+
16+
- name: Build Docs
17+
run: |
18+
swift package --allow-writing-to-directory ./gh-pages/docs \
19+
generate-documentation --include-extended-types \
20+
--disable-indexing \
21+
--output-path ./gh-pages/docs \
22+
--transform-for-static-hosting \
23+
--hosting-base-path OpenAPIKit \
24+
--target OpenAPIKit
25+
26+
- name: Deploy to GitHub Pages
27+
uses: JamesIves/[email protected]
28+
with:
29+
folder: gh-pages
30+
branch: gh-pages
31+
32+
1433
# TODO: replace the documentation generator with something that is still maintained.
1534

1635
# - name: Generate Documentation

0 commit comments

Comments
 (0)