Skip to content

Commit e408b16

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

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/documentation.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,34 @@ 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+
mkdir -p ./gh-pages
19+
swift package --allow-writing-to-directory ./gh-pages/docs \
20+
generate-documentation --include-extended-types \
21+
--disable-indexing \
22+
--output-path ./gh-pages/docs \
23+
--transform-for-static-hosting \
24+
--hosting-base-path OpenAPIKit \
25+
--target OpenAPIKit
26+
27+
- name: Deploy to GitHub Pages
28+
uses: JamesIves/[email protected]
29+
with:
30+
folder: gh-pages
31+
branch: gh-pages
32+
33+
1434
# TODO: replace the documentation generator with something that is still maintained.
1535

1636
# - name: Generate Documentation

0 commit comments

Comments
 (0)