-
Notifications
You must be signed in to change notification settings - Fork 105
41 lines (38 loc) · 1.34 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
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 }}
export-git-user: true
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # tag: v4.1.0
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@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag: v3.8.1
with:
node-version: lts/*
- run: yarn --frozen-lockfile
- run: yarn build:docs
- uses: malept/github-action-gh-pages@e151760357583e2f9152f8e8c8658ceb3ccf3d64 # tag: v1.3.1
with:
defaultBranch: main
gitCommitEmail: ${{ env.GIT_COMMITTER_EMAIL }}
gitCommitMessage: 'Publish [skip ci]'
gitCommitUser: ${{ env.GIT_COMMITTER_NAME }}
showUnderscoreFiles: true
versionDocs: true
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}