Skip to content

Commit e477721

Browse files
stephencelismluisbrown
authored andcommitted
Add swift-doc action (#241)
* Add swift-doc action * alphabetize * Update documentation.yml
1 parent 999a345 commit e477721

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/documentation.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Documentation
2+
on:
3+
release:
4+
types:
5+
- published
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Generate Documentation
13+
uses: SwiftDocOrg/swift-doc@master
14+
with:
15+
base-url: /reactiveswift-composable-architecture/
16+
format: html
17+
inputs: Sources/ComposableArchitecture
18+
module-name: ComposableArchitecture
19+
output: Documentation
20+
- name: Update Permissions
21+
run: 'sudo chown --recursive $USER Documentation'
22+
- name: Deploy to GitHub Pages
23+
uses: JamesIves/github-pages-deploy-action@releases/v3
24+
with:
25+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
26+
BRANCH: gh-pages
27+
FOLDER: Documentation

0 commit comments

Comments
 (0)