Skip to content

Commit

Permalink
copy cached
Browse files Browse the repository at this point in the history
  • Loading branch information
zain-sohail committed Jun 12, 2024
1 parent fa83297 commit 0c1bf90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,16 @@ jobs:
docs/tutorial/*ipynb
docs/tutorial/tutorial_checksums.txt
key: ${{ runner.os }}-docs-build-${{ hashFiles('docs/tutorial/tutorial_checksums.txt') }}

# upload the cache as artifact
- name: Upload cache
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
path: |
_build/
docs/tutorial/*ipynb
docs/tutorial/tutorial_checksums.txt
- name: Setup Pages
uses: actions/configure-pages@v4

Expand Down
2 changes: 2 additions & 0 deletions docs/move_changed_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def main():
print("No cached checksums found. Copying tutorials.")
for file in tutorial_src_dir.glob("*.ipynb"):
shutil.copy(file, cache_dir)
print("Copying new checksums to docs/tutorial")
shutil.copy(current_checksums_file, cache_dir)
return

current_checksums = load_checksums(current_checksums_file)
Expand Down

0 comments on commit 0c1bf90

Please sign in to comment.