Skip to content

Commit

Permalink
add restore/save cache
Browse files Browse the repository at this point in the history
  • Loading branch information
zain-sohail committed Jun 12, 2024
1 parent 18acfff commit ad3eb27
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,16 @@ jobs:
rm $GITHUB_WORKSPACE/tutorial/5_sxp_workflow.ipynb
- name: Cache build
id: cache-notebooks
uses: actions/cache@v3
uses: actions/cache/restore@v3
id: restore-cache
with:
path: |
_build/
docs/tutorial/*ipynb
docs/tutorial/tutorial_checksums.txt
key: ${{ runner.os }}-notebook-outputs-${{ hashFiles('docs/tutorial/tutorial_checksums.txt') }}
key: ${{ runner.os }}-docs-build-${{ hashFiles('docs/tutorial/tutorial_checksums.txt') }}
restore-keys: |
${{ runner.os }}-docs-build-
- name: Compute notebook checksums
id: compute-checksums
Expand All @@ -85,6 +87,16 @@ jobs:
- name: Build Sphinx docs
run: poetry run sphinx-build -b html $GITHUB_WORKSPACE/docs $GITHUB_WORKSPACE/_build

- name: Cache build
uses: actions/cache/save@v3
id: save-cache
with:
path: |
_build/
docs/tutorial/*ipynb
docs/tutorial/tutorial_checksums.txt
key: ${{ runner.os }}-docs-build-${{ hashFiles('docs/tutorial/tutorial_checksums.txt') }}

- name: Setup Pages
uses: actions/configure-pages@v4

Expand Down

0 comments on commit ad3eb27

Please sign in to comment.