generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 105
43 lines (39 loc) · 1.04 KB
/
document-gen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Documentation generator
on:
push:
branches:
- main
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: setup node.js
uses: actions/setup-node@v3
- name: install dependencies
run: |
npm clean-install
npm i -d @types/node
- run: npm run build
- name: build typedoc site
run: |
npx typedoc
- name: make git repo to push to github actions
run: |
cd documentation
git init
git add -A
git config user.name 'GitHub Actions'
git config user.email '[email protected]'
git commit -sam "$(date -Iseconds)"
touch .nojekyll
- name: push documentation files to docs branch
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
force: true
directory: documentation