From 45c75e94060c182dbd163af2c6a69a62438d8b3d Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 23 Apr 2026 03:12:48 +0000 Subject: [PATCH] Add Gitea Actions deployment workflow --- .gitea/workflows/deploy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..7ca7f5f --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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 \ No newline at end of file