Compare commits
No commits in common. "6001f860fb575d60a93ebcc604082e3d5431de56" and "b7c5b1e8b7a707e89f4824da3318410003081cdf" have entirely different histories.
6001f860fb
...
b7c5b1e8b7
@ -1,4 +1,4 @@
|
||||
name: Personal Website - Run Python HTTP Server
|
||||
name: Deploy to Pi
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -9,15 +9,12 @@ jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
|
||||
env:
|
||||
PORT: 8080
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
run: |
|
||||
cd ~/personal-site
|
||||
git checkout $GITEA_REF_NAME
|
||||
git pull origin $GITEA_REF_NAME
|
||||
git checkout actions
|
||||
git pull origin actions
|
||||
|
||||
- name: Stop existing server, if running
|
||||
run: |
|
||||
@ -28,4 +25,4 @@ jobs:
|
||||
cd ~/personal-site
|
||||
chmod +x ./start.sh
|
||||
sassc css/style.scss css/style.css
|
||||
exec python3 -m http.server $PORT > server.log 2>&1
|
||||
exec python3 -m http.server 8080 > server.log 2>&1
|
||||
|
13
dev.sh
Executable file
13
dev.sh
Executable file
@ -0,0 +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
|
||||
|
Loading…
Reference in New Issue
Block a user