Files
org_web/publish-and-push.sh
gitea-actions cd62a01ec5
All checks were successful
Build Org Website / build (push) Successful in 54s
updates
2026-06-04 14:13:45 +01:00

24 lines
474 B
Bash
Executable File

#!/bin/bash
# Exit immediately if any command fails
set -e
# Define paths
ORG_OUTPUT_DIR="$HOME/master-folder/org-platform/org_web/output"
cd "$ORG_OUTPUT_DIR"
echo "HTML published to: $ORG_OUTPUT_DIR"
# Git commands
echo "Adding changes to Git..."
git add .
echo "Committing..."
git commit -m "Auto-publish on $(date)" || echo "Nothing to commit."
echo "Pushing to GitHub..."
git push origin main
echo "Done! Changes pushed and Cloudflare should rebuild the site."