Commit 0c8cbcd9c0
Unsigned
Layout: unified · split
.gitignore +1
| @@ -2,3 +2,4 @@ | |||
| 2 | .DS_Store | 2 | .DS_Store |
| 3 | .vscode | 3 | .vscode |
| 4 | public | 4 | public |
| 5 | readme.html | ||
build.sh +6 −3
| @@ -5,9 +5,12 @@ read answer | |||
| 5 | 5 | ||
| 6 | if [ "$answer" != "${answer#[Yy]}" ] ; then | 6 | if [ "$answer" != "${answer#[Yy]}" ] ; then |
| 7 | if [ "$ENV" == "prod" ]; then | 7 | if [ "$ENV" == "prod" ]; then |
| 8 | echo "Environment = Production" && \ | 8 | echo "Environment = Production" && \ |
| 9 | rm -rf .build/* && \ | 9 | rm -rf .build/* && \ |
| 10 | emacs --script publish.el && \ | 10 | emacs --script publish.el && \ |
| 11 | pandoc -f org -t html readme.org -o readme.html && \ | ||
| 12 | hut git update --readme readme.html --repo \ | ||
| 13 | https://git.sr.ht/\~cyborg/cleberg.net && \ | ||
| 11 | rsync -av --delete-before .build/* ubuntu:/var/www/cleberg.net/ | 14 | rsync -av --delete-before .build/* ubuntu:/var/www/cleberg.net/ |
| 12 | else | 15 | else |
| 13 | echo "Environment = Development" && \ | 16 | echo "Environment = Development" && \ |