-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (33 loc) · 969 Bytes
/
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
name: Deploy to GitHub Pages
on:
push:
branches:
- farm-ng-core-docs
- api-reference
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18
# cache: yarn
- name: Install docusaurus dependencies
working-directory: docs
run: yarn install --frozen-lockfile
- name: Test build website
working-directory: docs
run: yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build
publish_branch: docs