File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
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
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 : |
You can’t perform that action at this time.
0 commit comments