-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy Docusaurus site to docs folder
- Loading branch information
Showing
26 changed files
with
1,566 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# Exit immediately if a command exits with a non-zero status | ||
set -e | ||
|
||
# Define directories | ||
BUILD_DIR="build" | ||
DOCS_DIR="docs" | ||
|
||
npm run build | ||
|
||
# Copy the contents of the build directory to the docs directory | ||
echo "Copying contents of $BUILD_DIR to $DOCS_DIR..." | ||
cp -R "$BUILD_DIR"/* "$DOCS_DIR" | ||
|
||
git add . | ||
git commit -m "Deploy Docusaurus site to docs folder" | ||
git push origin main | ||
|
||
echo "Deployment complete" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.