Skip to content

Commit b0a704d

Browse files
authored
Create docs.yml
1 parent 4711020 commit b0a704d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/docs.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Update docs
2+
3+
on:
4+
push:
5+
branches:
6+
- v7
7+
- master
8+
9+
jobs:
10+
publish-docs:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Setup Node.js environment
16+
uses: actions/[email protected]
17+
with:
18+
node-version: >= 12
19+
20+
- uses: actions/checkout@v2
21+
22+
- name: Checkout gh-pages
23+
uses: actions/checkout@v2
24+
with:
25+
ref: gh-pages
26+
path: tsdoc
27+
28+
- run: rm -rf tsdoc/*
29+
- run: yarn typedoc --disableOutputCheck
30+
31+
- name: Commit to gh-pages
32+
uses: EndBug/add-and-commit@v4
33+
with:
34+
cwd: './tsdoc'
35+
ref: gh-pages
36+
message: "Update docs via ${GIT_SHA}"
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
GIT_SHA: ${{ github.sha }}

0 commit comments

Comments
 (0)