Compare commits
2 Commits
b7c5b1e8b7
...
6001f860fb
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6001f860fb | ||
![]() |
fd6ece4f74 |
@ -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
13
dev.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user