-
-
Notifications
You must be signed in to change notification settings - Fork 17
46 lines (43 loc) · 1.51 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
name: Publish documentation
on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+*
permissions: {}
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
id: generate-token
with:
creds: ${{ secrets.GH_APP_CREDS }}
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag: v4.1.7
with:
token: ${{ steps.generate-token.outputs.token }}
- name: Fetch all git branches
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # tag: v4.0.2
with:
node-version: lts/*
- run: yarn install --frozen-lockfile
- run: yarn run docs:build
- name: Prepare docs
uses: malept/github-action-gh-pages@f7952a65c4b763dc84b824a530dc38bd375ac91e # tag: v1.4.0
with:
defaultBranch: main
docsPath: typedoc
noCommit: true
showUnderscoreFiles: true
versionDocs: true
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
- name: Commit docs
uses: dsanders11/github-app-commit-action@48d2ff8c1a855eb15d16afa97ae12616456d7cbc # v1.4.0
with:
fail-on-no-changes: false
message: 'Publish [skip ci]'
token: ${{ steps.generate-token.outputs.token }}