clean up indexing chapters #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy python basics | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
name: sphinx build | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v1 | |
- name: build static html | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
make html | |
- name: copy to academis server | |
uses: appleboy/scp-action@master | |
with: | |
host: ${{ secrets.ACADEMIS_HOST }} | |
username: ${{ secrets.ACADEMIS_USERNAME }} | |
port: 22 | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
source: build/html/* | |
target: /www/academis/python_basics | |
rm: true | |
strip_components: 2 |