-
-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (32 loc) · 1.06 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
name: Publish documentation
on:
push:
branches:
- '*'
# - main
# tags:
# - v[0-9]+.[0-9]+.[0-9]+*
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # tag: v3.5.3
- name: Fetch all git branches
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag: v3.7.0
with:
node-version: 14.x
- run: npm install --engine-strict --no-lockfile
- run: npm run docs:build
- run: chown root:root .
- uses: malept/github-action-gh-pages@main # TODO: SHA this
with:
defaultBranch: main
docsPath: typedoc
gitCommitEmail: 'electron-bot@users.noreply.github.com'
gitCommitMessage: 'Publish [skip ci]'
gitCommitUser: 'Electron Bot'
showUnderscoreFiles: true
versionDocs: true
env:
GH_PAGES_SSH_DEPLOY_KEY: ${{ secrets.DOCS_SSH_DEPLOY_KEY }}