Skip to content

Instantly share code, notes, and snippets.

@chrisdone-artificial
Last active July 15, 2025 19:45
Show Gist options
  • Save chrisdone-artificial/62dd54d3ee9bc3610b8d7844ff557819 to your computer and use it in GitHub Desktop.
Save chrisdone-artificial/62dd54d3ee9bc3610b8d7844ff557819 to your computer and use it in GitHub Desktop.
update-website.sh
- id: "update-website"
execute-command: "/home/chris/update-website.sh"
# include-command-output-in-response: true
trigger-rule:
and:
- match:
type: "payload-hmac-sha256"
secret: "....
parameter:
source: "header"
name: "X-Hub-Signature-256"
#!/bin/sh
set -x
set -e
cd /tmp/website/
sudo -u chris git pull
hell website.hell
sudo rsync -av /tmp/website/webroot/ /var/www/html/ --itemize-changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment