Merge remote-tracking branch 'origin/main'
Some checks failed
Deploy Portfolio / deploy (push) Failing after 0s
Some checks failed
Deploy Portfolio / deploy (push) Failing after 0s
This commit is contained in:
24
.gitea/workflows/deploy.yml
Normal file
24
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Deploy Portfolio
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: vps-host
|
||||
steps:
|
||||
- name: Pull latest code
|
||||
run: |
|
||||
cd /var/www/Portfolio
|
||||
git pull origin main
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: |
|
||||
cd /var/www/Portfolio
|
||||
/var/www/Portfolio/port/bin/pip3 install -q -r requirements.txt
|
||||
|
||||
- name: Restart application service
|
||||
run: |
|
||||
sudo systemctl restart port
|
||||
Reference in New Issue
Block a user