Skip to content

Commit ee9157d

Browse files
committed
Add documentation GitHub action
1 parent 3b5ed17 commit ee9157d

File tree

1 file changed

+26
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)