Skip to content

Commit 9cb1da6

Browse files
committed
More attempts at documentation
1 parent 11fcf92 commit 9cb1da6

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/documentation.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
submodules: 'recursive'
2929
fetch-depth: 0
3030

31-
- name: "Clone Documentation"
31+
- name: "Clone Documentation Cache"
32+
id: doc_cache
3233
continue-on-error: true
3334
uses: actions/checkout@v3
3435
with:
@@ -37,6 +38,17 @@ jobs:
3738
submodules: 'recursive'
3839
fetch-depth: 0
3940

41+
- name: "Initialize Documentation Cache"
42+
if: steps.doc_cache.outcome == 'failure'
43+
shell: bash
44+
run: |
45+
mkdir -p build/docs/html
46+
pushd build/docs/html
47+
git init --bare
48+
git switch --orphan documentation
49+
git remote add -t documentation origin ${{ github.repositoryUrl }}
50+
popd
51+
4052
- name: "Install Prerequisites"
4153
shell: bash
4254
run: |

0 commit comments

Comments
 (0)