@@ -157,11 +157,46 @@ jobs:
157157 runs-on : ubuntu-latest
158158 steps :
159159 - uses : actions/checkout@v2
160+ - run : git fetch --prune --unshallow
161+ - uses : actions/setup-python@v2
162+ with :
163+ python-version : 3.8.x
164+ - uses : actions/cache@v1
165+ with :
166+ path : ~/.cache/pip
167+ key : pip-ubuntu-latest-py3.8-${{ hashFiles('Pipfile.lock') }}
168+ restore-keys : |
169+ pip-ubuntu-latest-py3.8-${{ hashFiles('Pipfile.lock') }}
170+ pip-ubuntu-latest-py3.8-
171+ - uses : actions/cache@v1
172+ with :
173+ path : ~/.local/share/virtualenvs
174+ key : virtualenvs-ubuntu-latest-py3.8-${{ hashFiles('Pipfile.lock') }}
175+ restore-keys : |
176+ virtualenvs-ubuntu-latest-py3.8-${{ hashFiles('Pipfile.lock') }}
177+ virtualenvs-ubuntu-latest-py3.8-
178+ - run : pip install -U pipenv pip
179+ - run : make deps
160180 - run : make docs
161181 - uses : actions/upload-artifact@v2
162182 with :
163183 name : docs
164184 path : docs/site/
185+ - uses : aws-actions/configure-aws-credentials@v1
186+ with :
187+ aws-access-key-id : ${{ secrets.AWS_ID }}
188+ aws-secret-access-key : ${{ secrets.AWS_SECRET }}
189+ aws-region : us-east-1
190+ - if : github.event_name == 'push' && github.ref == 'refs/heads/master'
191+ run : make sync-latest-docs-to-s3
192+ - if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
193+ uses : aws-actions/configure-aws-credentials@v1
194+ with :
195+ aws-access-key-id : ${{ secrets.DOCS_AWS_ID }}
196+ aws-secret-access-key : ${{ secrets.DOCS_AWS_SECRET }}
197+ aws-region : us-east-1
198+ - if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
199+ run : make promote-docs-in-s3
165200 dispatch :
166201 if : github.event_name == 'push' && github.ref == 'refs/heads/master'
167202 needs : distributions
0 commit comments