Compare commits

..

2 Commits

Author SHA1 Message Date
david
6001f860fb final touches
Some checks failed
Personal Website - Run Python HTTP Server / deploy (push) Has been cancelled
2025-04-03 19:41:37 -07:00
david
fd6ece4f74 revert dev 2025-04-03 19:37:57 -07:00
3 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,4 @@
name: Deploy to Pi
name: Personal Website - Run Python HTTP Server
on:
push:
@ -9,12 +9,15 @@ jobs:
deploy:
runs-on: self-hosted
env:
PORT: 8080
steps:
- name: Checkout code
run: |
cd ~/personal-site
git checkout actions
git pull origin actions
git checkout $GITEA_REF_NAME
git pull origin $GITEA_REF_NAME
- name: Stop existing server, if running
run: |
@ -25,4 +28,4 @@ jobs:
cd ~/personal-site
chmod +x ./start.sh
sassc css/style.scss css/style.css
exec python3 -m http.server 8080 > server.log 2>&1
exec python3 -m http.server $PORT > server.log 2>&1

13
dev.sh
View File

@ -1,13 +0,0 @@
#!/bin/bash
sassc css/style.scss css/style.css
python3 -m http.server 8080 &
# Keypress loop
while true; do
read -n 1 -s key
if [[ $key == "r" ]]; then
echo -e "\nRecompiling SCSS..."
sassc css/style.scss css/style.css && echo "Done."
fi
done

View File

@ -1,3 +1,13 @@
#!/bin/bash
sassc css/style.scss css/style.css
python3 -m http.server 8080 &
# Keypress loop
while true; do
read -n 1 -s key
if [[ $key == "r" ]]; then
echo -e "\nRecompiling SCSS..."
sassc css/style.scss css/style.css && echo "Done."
fi
done