From 45c75e94060c182dbd163af2c6a69a62438d8b3d Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 23 Apr 2026 03:12:48 +0000 Subject: [PATCH 1/6] 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 From 9b44141262250b8ded6f0e08fa0352c35908da0d Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 23 Apr 2026 03:15:42 +0000 Subject: [PATCH 2/6] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 7ca7f5f..3b191b9 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -7,7 +7,7 @@ on: jobs: deploy: - runs-on: ubuntu-latest + runs-on: vps-host steps: - name: Pull latest code run: | From e482e2cefd1fc41111e086e7a1b8cd8b1ea0203c Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 23 Apr 2026 03:25:48 +0000 Subject: [PATCH 3/6] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 3b191b9..aa411fc 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -21,4 +21,4 @@ jobs: - name: Restart application service run: | - sudo systemctl restart portfolio \ No newline at end of file + sudo systemctl restart port \ No newline at end of file From b318cc1a1b0ecc5731e6f6962927a8b1e3608287 Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 23 Apr 2026 03:28:12 +0000 Subject: [PATCH 4/6] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index aa411fc..bc7cc63 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -11,12 +11,12 @@ jobs: steps: - name: Pull latest code run: | - cd ~/Portfolio + cd /var/www/Portfolio git pull origin main - name: Install Python dependencies run: | - cd ~/Portfolio + cd /var/www/Portfolio pip install -r requirements.txt - name: Restart application service From 9abf410d9e2987751fbe5acb57a2f4490c9af9be Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 23 Apr 2026 03:30:15 +0000 Subject: [PATCH 5/6] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index bc7cc63..e21cd8d 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -17,7 +17,7 @@ jobs: - name: Install Python dependencies run: | cd /var/www/Portfolio - pip install -r requirements.txt + /var/www/Portfolio/port/bin/pip install -r requirements.txt - name: Restart application service run: | From b9d2e57d5d8815aeb0face98d1e1388b3714fc0c Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 23 Apr 2026 03:36:39 +0000 Subject: [PATCH 6/6] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e21cd8d..9fa7799 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -17,7 +17,7 @@ jobs: - name: Install Python dependencies run: | cd /var/www/Portfolio - /var/www/Portfolio/port/bin/pip install -r requirements.txt + /var/www/Portfolio/port/bin/pip3 install -q -r requirements.txt - name: Restart application service run: |