Update from https://github.com/RunOnFlux/flux/commit/1285c6887b677d1c… #2252
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |