#!/bin/bash # Use the first argument as the commit message, or default to "Update book content" COMMIT_MSG=${1:-"Update book content"} echo "Publishing the Quarto book to Posit Connect Cloud..." # The actual Quarto project configuration (_quarto.yml) is located inside the 'src' directory. # This command will handle the publishing process to Posit Connect Cloud. quarto publish posit-connect-cloud src echo "Staging and committing changes to git..." git add . git commit -m "$COMMIT_MSG" echo "Publishing complete!"