Update basic_submit.py fix docstring (#365) #341
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: Build docs | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install deps | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[docs] | |
- name: Build docs | |
run: | | |
make -C docs | |
- name: Tar docs | |
if: ${{ github.event_name != 'pull_request' }} | |
run: | | |
cd docs/build/html && tar -zcf ../../../docs.tar.gz * | |
- name: Upload html | |
if: ${{ github.event_name != 'pull_request' }} | |
env: | |
USER: ${{ secrets.DOCS_USERNAME }} | |
PASS: ${{ secrets.DOCS_PASSWORD }} | |
run: | | |
curl --data-binary "@docs.tar.gz" -XPUT "https://$USER:[email protected]/api/upload?path=$GITHUB_REPOSITORY/${{ github.ref_name }}" |