Add Gitea Actions deployment workflow
Some checks failed
Deploy Portfolio / deploy (push) Has been cancelled
Some checks failed
Deploy Portfolio / deploy (push) Has been cancelled
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: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Pull latest code
|
||||||
|
run: |
|
||||||
|
cd ~/Portfolio
|
||||||
|
git pull origin main
|
||||||
|
|
||||||
|
- name: Install Python dependencies
|
||||||
|
run: |
|
||||||
|
cd ~/Portfolio
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
- name: Restart application service
|
||||||
|
run: |
|
||||||
|
sudo systemctl restart portfolio
|
||||||
Reference in New Issue
Block a user