Skip to content

Commit cd38a32

Browse files
committed
Simplify docs deploy job
1 parent 5871997 commit cd38a32

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/Documentation.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ jobs:
3737
- uses: actions/checkout@v6
3838
- uses: julia-actions/setup-julia@v2
3939
with:
40-
version: "1.12"
40+
version: "1"
4141
- uses: julia-actions/cache@v2
4242
id: julia-cache
43+
with:
44+
cache-name: Documentation
4345
- name: Instantiate docs environment
4446
shell: julia --color=yes --project=docs {0}
4547
run: |
@@ -82,18 +84,15 @@ jobs:
8284
- uses: actions/checkout@v6
8385
- uses: julia-actions/setup-julia@v2
8486
with:
85-
version: "1.12"
87+
version: "1"
8688
- uses: julia-actions/cache@v2
87-
id: julia-cache
89+
with:
90+
# Steal cache from the build job
91+
cache-name: Documentation
8892
- uses: actions/download-artifact@v6
8993
with:
9094
name: documentation-build
9195
path: docs/build
92-
- name: Remove extra files
93-
# There may be JLD2 files generated during execution of Literate
94-
# examples, we don't need them on the website.
95-
run:
96-
rm -fv docs/build/literated/*.jld2
9796
- name: Instantiate docs environment
9897
shell: julia --color=yes {0}
9998
run: |
@@ -107,11 +106,3 @@ jobs:
107106
env:
108107
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109108
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
110-
- name: Save Julia depot cache on cancel or failure
111-
id: julia-cache-save
112-
if: cancelled() || failure()
113-
uses: actions/cache/save@v4
114-
with:
115-
path: |
116-
${{ steps.julia-cache.outputs.cache-paths }}
117-
key: ${{ steps.julia-cache.outputs.cache-key }}

0 commit comments

Comments
 (0)