File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,34 @@ 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
+ 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
+
29
+ with :
30
+ folder : gh-pages
31
+ branch : gh-pages
32
+
33
+
14
34
# TODO: replace the documentation generator with something that is still maintained.
15
35
16
36
# - name: Generate Documentation
You can’t perform that action at this time.
0 commit comments