-
-
Notifications
You must be signed in to change notification settings - Fork 10
54 lines (51 loc) · 1.3 KB
/
jsdocs.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
name: jsdocs develop
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
push:
branches:
- develop
paths:
- "shared/**"
- "jsdoc/**"
env:
JDOC_APP_ID: "fdb282ef-1a12-4ed8-8859-ac16c5ea3390"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: checkout cables
uses: actions/checkout@v4
with:
repository: "cables-gl/cables"
ref: develop
token: ${{ secrets.undev_token }}
path: "cables/"
- name: checkout cables ui
uses: actions/checkout@v4
with:
repository: "cables-gl/cables_ui"
ref: develop
token: ${{ secrets.undev_token }}
path: "cables_ui/"
- name: checkout cables electron
uses: actions/checkout@v4
with:
repository: "cables-gl/cables_electron"
path: "cables_electron/"
ref: develop
- name: build jsdoc
run: |
cd jsdoc/
npm install --no-save
npm run build:dev
- name: Deploy jsdocs to netlify
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ env.JDOC_APP_ID }}
with:
args: deploy --dir=jsdoc/dist --prod
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'