File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,33 @@ name: Documentation
3
3
on :
4
4
push :
5
5
branches :
6
- - main
6
+ - add-swift-docc # release/4_0
7
+ # ^ for now, we only want to use the v4.0 release branch.
7
8
8
9
jobs :
9
10
build :
10
11
runs-on : ubuntu-latest
11
12
12
13
steps :
13
14
- 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
+
28
+ with :
29
+ folder : gh-pages
30
+ branch : gh-pages
31
+
32
+
14
33
# TODO: replace the documentation generator with something that is still maintained.
15
34
16
35
# - name: Generate Documentation
You can’t perform that action at this time.
0 commit comments