Skip to content

Commit 78a4142

Browse files
authored
Generate and publish documentation with swift-doc
1 parent 36f6bdb commit 78a4142

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/documentation.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Documentation
2+
3+
on: [push]
4+
5+
jobs:
6+
swift-doc:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Generate Documentation
12+
uses: MaxDesiatov/swift-doc@prebuilt-image
13+
with:
14+
inputs: "Sources"
15+
module-name: JavaScriptKit
16+
format: html
17+
base-url: "/JavaScriptKit"
18+
output: ./.build/documentation
19+
- run: sudo chmod o+r -R ./.build/documentation
20+
- name: Deploy
21+
uses: peaceiris/actions-gh-pages@v3
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
publish_dir: ./.build/documentation

0 commit comments

Comments
 (0)