v3.23.0 #37
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
# 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@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.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 |