-
-
Notifications
You must be signed in to change notification settings - Fork 520
57 lines (49 loc) · 1.47 KB
/
gh-pages.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
50
51
52
53
54
55
56
57
name: API Documentation
on:
workflow_dispatch:
push:
tags:
- v7.**
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
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@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
submodules: true
fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}
- name: Get short SHA for HEAD
id: get-short-sha
run: echo "sha=$(git rev-parse --short=7 HEAD)" >> $GITHUB_OUTPUT
- name: Use Node.js LTS
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20.x
cache: yarn
- name: Build
shell: bash
run: |
yarn
yarn docs
- name: Prepare docs
uses: malept/github-action-gh-pages@f7952a65c4b763dc84b824a530dc38bd375ac91e # tag: v1.4.0
with:
cname: js.electronforge.io
defaultBranch: main
noCommit: true
showUnderscoreFiles: true
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
- name: Debug
shell: bash
run: |
git status
git diff-index --cached HEAD