Skip to content

Commit 1eeb486

Browse files
authored
chore(documentation): fixed bug in doc publishing (#720)
1 parent 7bcc3fc commit 1eeb486

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/publish-docs.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: tar the existing docs
2323
run: |
2424
mkdir -p ./docs
25-
tar -cvf documentation.tar ./docs
25+
tar -cvf documentation.tar --no-dereference ./docs
2626
2727
- name: create a document artifact
2828
uses: runloopai/upload-artifact@main
@@ -42,7 +42,13 @@ jobs:
4242
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
4343
with:
4444
name: documentation
45-
- run: tar -xf documentation.tar ./docs -C ./docs
45+
- run: tar -xf documentation.tar
46+
- name: Remove any legacy nested docs trees
47+
run: |
48+
if [ -d ./docs/docs ]; then
49+
echo "Removing legacy nested docs content from prior malformed extraction"
50+
rm -rf ./docs/docs
51+
fi
4652
4753
- name: Build
4854
uses: runloopai/setup-node@main
@@ -56,7 +62,7 @@ jobs:
5662
run: yarn docs #set up 'docs' build script in your package.json
5763

5864
- name: tar the new docs
59-
run: tar -cvf newdocumentation.tar ./docs
65+
run: tar -cvf newdocumentation.tar --no-dereference ./docs
6066

6167
- name: create a new document artifact
6268
uses: runloopai/upload-artifact@main
@@ -78,7 +84,7 @@ jobs:
7884
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
7985
with:
8086
name: newdocumentation
81-
- run: tar -xf newdocumentation.tar ./docs -C ./docs
87+
- run: tar -xf newdocumentation.tar
8288

8389
- name: commit
8490
run: |

0 commit comments

Comments
 (0)