-
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.
- Loading branch information
Showing
1 changed file
with
16 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -11,6 +11,12 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install mdbook and plugins | ||
run: | | ||
# Install mdbook | ||
cargo install mdbook | ||
# Install mdbook-mermaid plugin | ||
cargo install mdbook-mermaid | ||
- name: Build and Deploy to Server | ||
uses: appleboy/ssh-action@master | ||
with: | ||
|
@@ -27,7 +33,16 @@ jobs: | |
cd /home/${{ secrets.DOCS_USER }}/build | ||
git clone [email protected]:TrueBlocks/trueblocks-khedra | ||
cd trueblocks-khedra/book | ||
# Make sure the Mermaid plugin is available | ||
mdbook build | ||
echo "Deploying to the book server..." | ||
rsync -avz --delete book/ /var/www/khedra.trueblocks.io/html/ | ||
rsync -avz book/ /var/www/khedra.trueblocks.io/html/ | ||
- name: Verify Build Output | ||
run: | | ||
if [ ! -d "book" ]; then | ||
echo "Build failed: book directory not found!" | ||
exit 1 | ||
fi | ||
echo "Build verification passed!" |