forked from cube-js/cube
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.11 KB
/
docs-publish.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
40
41
name: Documentation Publish
on:
push:
paths:
- '.github/workflows/docs.yml'
- 'docs-gen/**'
- 'docs/**'
branches:
- master
jobs:
docs:
name: Publish
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '15.x'
- name: Restore cache
uses: actions/cache@v2
with:
path: |
node_modules
docs/node_modules
key: ${{ runner.os }}-workspace-docs-${{ matrix.node-version }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.DOCS_DEPLOY_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DOCS_DEPLOY_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Generate API documentation
run: ./docs-gen.sh
- name: Build Gatsby site
run: ./deploy-production.sh
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}