-
Notifications
You must be signed in to change notification settings - Fork 28
31 lines (29 loc) · 1007 Bytes
/
deploy_api_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
name: API docs deployment
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: "3.x"
- name: install general python dependencies
run: pip install sphinx sphinx_rtd_theme codecov numpydoc sandy
- name: make docs
run: bash make_docs.sh html
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: api_docs/build/html
destination-github-username: 'luca-fiorito-11'
destination-repository-name: 'sandy'
user-email: lucafiorito.11@gmail.com
commit-message: pushing api docs...
target-branch: gh-pages