File size: 522 Bytes
fb81524
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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!"