Skip to content

Commit

Permalink
Put pre-built documentation in artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Luthaf committed Nov 19, 2024
1 parent 93e3636 commit e1478fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ concurrency:
jobs:
build-and-publish:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: free disk space
run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android || true
Expand Down Expand Up @@ -41,6 +43,13 @@ jobs:
# Use the CPU only version of torch when building/running the code
PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu

- name: store documentation as github artifact to be downloaded by users
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/build/html/*
overwrite: true # only keep the latest version of the documentation

- name: put documentation in the website
run: |
git clone https://github.com/$GITHUB_REPOSITORY --branch gh-pages gh-pages
Expand Down

0 comments on commit e1478fb

Please sign in to comment.