Skip to content

Commit

Permalink
Tries to fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Jan 6, 2025
1 parent 7f2254f commit 98bba17
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/deploy_book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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!"

0 comments on commit 98bba17

Please sign in to comment.