-
Notifications
You must be signed in to change notification settings - Fork 20
39 lines (34 loc) · 1.17 KB
/
github-pages.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
name: github-pages
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-and-deploy:
name: Github Pages
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
- name: Build Reveal
working-directory: viewer
run: |
yarn install --immutable
yarn build:prod
- name: Install and Build documentation 🔧
working-directory: documentation
run: |
yarn install --immutable
yarn build
- name: Deploy documentation 🚀
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.REVEAL_DOCS_DEPLOY_KEY }}
external_repository: cognitedata/reveal-docs
publish_branch: master
publish_dir: documentation/build