Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sitic committed Oct 10, 2024
1 parent d081f88 commit be95868
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,20 @@ jobs:
run: pip install opencv-python-headless ipywidgets

- name: Build docs
run: python -m sphinx -b dirhtml docs docs/_build

- name: Sanitize ref name for docs version
run: echo "DOCS_VERSION=${GITHUB_REF_NAME//[^A-Za-z0-9._-]/_}" >> $GITHUB_ENV

- name: Move to versioned directory
run: mv build/html .github/pages/$DOCS_VERSION
run: python -m sphinx -b dirhtml docs docs/_build/html

# - name: Upload artifact
# uses: actions/upload-artifact@v4
# with:
# path: docs/_build
# path: docs/_build/html
# name: juypter_cache

- name: Sanitize ref name for docs version
run: echo "DOCS_VERSION=${GITHUB_REF_NAME//[^A-Za-z0-9._-]/_}" >> $GITHUB_ENV

- name: Move to versioned directory
run: mv docs/_build/html .github/pages/$DOCS_VERSION

- name: Publish Docs to gh-pages
if: github.ref_type == 'tag' || github.ref_name == 'main'
# We pin to the SHA, not the tag, for security reasons.
Expand Down
File renamed without changes.

0 comments on commit be95868

Please sign in to comment.