Skip to content

v3.31.0

v3.31.0 #49

Workflow file for this run

# build and release new docs as a release asset
name: Build Docs
on:
release:
types: [created]
jobs:
doc:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Setup Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.12"
- name: Install CLI
run: |
python -m pip install -e .
- name: Generate Autodoc
run: |
./reference/_generate.py --debug
# bundle as tarball without the _generate.py script or .gitignore
# use `-h` to dereference the changelog link
tar --exclude "*.py" --exclude '.gitignore' -czf cli-reference.tar.gz -h reference/
# upload as a release asset
- name: Upload Autodoc
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: gh release upload "${{ github.ref_name }}" cli-reference.tar.gz