forked from RedisJSON/RedisJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1009 Bytes
/
deploy-docs.yaml
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
name: Deploy docs to website
on:
push:
branches:
- master
- '[0-9]+.[0-9]+'
paths:
- 'mkdocs.yml'
- 'docs/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get all tags
run: git fetch -t
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install docs dependencies
run: pip install -r docs/requirements.txt
- name: Build docs
run: mkdocs build --clean
- uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: ${{ secrets.DOCS_AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
DEST_DIR: ${{ secrets.DOCS_AWS_S3_DIR }}
SOURCE_DIR: 'site'