-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.08 KB
/
actions.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
name: BuildJSDocs
on:
push:
paths-ignore:
- '**/docs/**'
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build
uses: andstor/jsdoc-action@v1
with:
source_dir: ./services # The folder holding the source files imported from RunOnFlux/flux.
recurse: true # Recurse into subdirectories (now that daemon service files are separate) when scanning for source files.
output_dir: ./JSDocsBuild # The temp folder the action should build files in.
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: master # The branch the action should deploy to.
folder: ./JSDocsBuild # The temp folder the action should deploy files from.
target-folder: ./docs # The folder the action should deploy to.
token: ${{ secrets.ACTIONS_TOKEN_GITHUB }}