Deploy.yml edited
This commit is contained in:
@@ -1,31 +1,5 @@
|
|||||||
name: Deploy
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: vps-host
|
|
||||||
steps:
|
|
||||||
- name: Pull latest code
|
- name: Pull latest code
|
||||||
run: |
|
run: |
|
||||||
|
ls /var/www/
|
||||||
cd /var/www/bennysblog
|
cd /var/www/bennysblog
|
||||||
git pull origin main
|
git pull origin main
|
||||||
|
|
||||||
- name: Install Python dependencies
|
|
||||||
run: |
|
|
||||||
cd /var/www/bennysblog
|
|
||||||
python3 -m pip install -r requirements.txt --quiet
|
|
||||||
|
|
||||||
- name: Build CSS
|
|
||||||
run: |
|
|
||||||
cd /var/www/bennysblog
|
|
||||||
npx tailwindcss \
|
|
||||||
-i static/src/app.css \
|
|
||||||
-o static/css/app.css \
|
|
||||||
--minify
|
|
||||||
|
|
||||||
- name: Restart service
|
|
||||||
run: sudo systemctl restart benny
|
|
||||||
Reference in New Issue
Block a user