-
Notifications
You must be signed in to change notification settings - Fork 74
49 lines (39 loc) · 1.24 KB
/
docs.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
44
45
46
47
48
49
name: Docs
on:
push:
branches:
- rewrite
workflow_dispatch:
jobs:
docs:
name: Run TypeDoc
runs-on: ubuntu-latest
steps:
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v2
with:
token: ${{ steps.generate-token.outputs.token }}
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
- run: yarn run docs
- run: curl https://gist.githubusercontent.com/vegeta897/0083c0f77d5952a904917dc7f990ae65/raw/79d3f5610bfa2dd45c59ce559e17ebd79399b6eb/_config.yml > docs/_config.yml
- name: Deploy to github pages
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: docs
FOLDER: docs
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}