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:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -9,15 +9,12 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
||||||
env:
|
|
||||||
PORT: 8080
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
run: |
|
run: |
|
||||||
cd ~/personal-site
|
cd ~/personal-site
|
||||||
git checkout $GITEA_REF_NAME
|
git checkout actions
|
||||||
git pull origin $GITEA_REF_NAME
|
git pull origin actions
|
||||||
|
|
||||||
- name: Stop existing server, if running
|
- name: Stop existing server, if running
|
||||||
run: |
|
run: |
|
||||||
@ -28,4 +25,4 @@ jobs:
|
|||||||
cd ~/personal-site
|
cd ~/personal-site
|
||||||
chmod +x ./start.sh
|
chmod +x ./start.sh
|
||||||
sassc css/style.scss css/style.css
|
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
|
||||||
|
|
10
start.sh
10
start.sh
@ -1,13 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sassc css/style.scss css/style.css
|
sassc css/style.scss css/style.css
|
||||||
python3 -m http.server 8080 &
|
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