Skip to content

Commit b112612

Browse files
committed
chore: fix the deploy job
1 parent 38c26ca commit b112612

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,21 @@ jobs:
3333
npm run typedoc
3434
3535
# Remove any unnecessary files or directories that might contain symlinks or large files
36-
# For example, remove node_modules from 'examples' to avoid copying symlinks
3736
rm -rf examples/node_modules
3837
38+
# Replace symbolic link with actual files
39+
# Remove the symbolic link to dist
40+
rm -f examples/dist
41+
# Copy the actual dist content to examples/dist
42+
cp -r dist examples/dist
43+
3944
# Copy only the required content to the docs folder
4045
mkdir -p docs
4146
cp -r dist/* docs/
4247
cp -r examples docs/
4348
44-
# Delete symbolic links under the docs directory.
45-
find docs -type l -exec rm {} \;
49+
# Delete any remaining symbolic links under the docs directory
50+
find docs -type l -delete
4651
fi
4752
env:
4853
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)