Last active
July 15, 2025 19:45
-
-
Save chrisdone-artificial/62dd54d3ee9bc3610b8d7844ff557819 to your computer and use it in GitHub Desktop.
update-website.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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