From dcb2af6ede59598ab4f6357c517a9cbd77b2e458 Mon Sep 17 00:00:00 2001 From: Stephen Arnold Date: Sun, 3 Nov 2024 13:22:28 -0800 Subject: [PATCH] add fresh docs deployment to release workflow !minor Signed-off-by: Stephen Arnold --- .github/workflows/release.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 83001e7..2ea4ce1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,3 +93,41 @@ jobs: prerelease: false files: | packages/yaml_tools* + + docs: + name: Release docs + needs: [create_release] + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-python@v5 + with: + python-version: '3.9' + + - name: Add python requirements + run: | + python -m pip install --upgrade pip + pip install tox + + - name: Build docs + run: | + tox -e ldocs,docs + + - uses: actions/upload-artifact@v4 + with: + name: ApiDocsHTML + path: "docs/_build/html/" + + - name: set nojekyll for github + run: | + sudo touch docs/_build/html/.nojekyll + + - name: Deploy docs to gh-pages + if: ${{ github.event_name == 'push' }} + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: docs/_build/html/