Skip to content

3.40.0

3.40.0 #61

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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.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