Skip to content

Commit

Permalink
new: usr: add docs build and deployment to release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Arnold <[email protected]>
  • Loading branch information
sarnold committed Oct 27, 2024
1 parent 112c2fe commit 42080fd
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
create_release:
name: Create Release
needs: [wheels]
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- name: Get version
Expand Down Expand Up @@ -93,3 +93,41 @@ jobs:
prerelease: false
files: |
packages/redis*
docs:
name: Release docs
needs: [create_release]
runs-on: ubuntu-22.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 docs-lint,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/

0 comments on commit 42080fd

Please sign in to comment.