Skip to content

Commit f6631a9

Browse files
authored
Add documentation workflow
1 parent 27e7acd commit f6631a9

File tree

1 file changed

+29
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)