Sphinx based documentation #4
Workflow file for this run
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
# artifact-upload.yml | |
--- | |
name: Artifact Upload | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
jobs: | |
create-artifact: | |
env: | |
ARTIFACT_PATH: ./doc/build/ | |
ARTIFACT_NAME: html | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install -r doc/requirements.txt | |
- name: Prepare sphinx build | |
run: | | |
cd doc | |
make html | |
- name: Upload Artifact | |
id: upload | |
uses: actions/[email protected] | |
with: | |
name: ${{ env.ARTIFACT_NAME }} | |
path: ${{ env.ARTIFACT_PATH }}/${{ env.ARTIFACT_NAME }} | |
if-no-files-found: error |