-
-
Notifications
You must be signed in to change notification settings - Fork 17
36 lines (33 loc) · 1.05 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
name: Publish documentation
on:
push:
branches:
- main
tags:
- v[0-9]+.[0-9]+.[0-9]+*
permissions: {}
jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # tag: v4.1.0
- name: Fetch all git branches
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag: v3.8.1
with:
node-version: lts/*
- run: yarn install --frozen-lockfile
- run: yarn run docs:build
- uses: dsanders11/github-action-gh-pages@6837fa66857ff3234e3ea5bcf709c86767ae3ce1
with:
defaultBranch: main
docsPath: typedoc
gitCommitEmail: '[email protected]'
gitCommitMessage: 'Publish [skip ci]'
gitCommitUser: 'github-actions'
showUnderscoreFiles: true
versionDocs: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}