-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1.05 KB
/
publish-docs.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
# This workflow will install the dependencies and then build and deploy the
# TypeScript documentation website to the docs branch.
# This file is auto-synced from product-os/jellyfish-config/sync/.github/workflows/publish-docs.yml
# and should only be edited there!
name: Publish Documentation
on:
push:
tags:
- "*"
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
persist-credentials: false
- name: Setup node
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2
with:
node-version: "14"
- name: Install NPM dependencies
run: npm i
- name: Generate docs
run: npm run doc
- name: Publish generated docs to GitHub Pages
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
publish_branch: docs