Skip to content

v3.21.0

v3.21.0 #35

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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Python
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
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