-
-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (45 loc) · 1.27 KB
/
jsdocs_master.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
name: jsdocs master
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
env:
JDOC_APP_ID: "131e893c-eac4-4713-917b-a49fdd10c1c8"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: checkout cables
uses: actions/checkout@v4
with:
repository: "cables-gl/cables"
ref: master
token: ${{ secrets.undev_token }}
path: "cables/"
- name: checkout cables ui
uses: actions/checkout@v4
with:
repository: "cables-gl/cables_ui"
ref: master
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: master
- name: build jsdoc
run: |
cd jsdoc/
npm install --no-save
npm run build
- 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"]'