v0.1.0a23 #21
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
name: Generate Docs | |
# Generate Docs and save as an artifact file | |
# - only on tags that start with `v` | |
on: | |
release: | |
types: [published] | |
jobs: | |
generate-docs: | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/v') | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.10.6 | |
- name: Install poetry | |
run: pip install poetry | |
- name: Install Dependencies | |
run: poetry install | |
- run: | | |
TAG=${{ github.ref_name }} poetry run ./build-docs.sh | |
- name: 'Save Generated Markdown' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: generated_docs | |
path: ./docs/docstrings/* | |
retention-days: 90 |