ci: update ci workflow for gitea
Deploy Site / deploy (push) Failing after 16s

This commit is contained in:
2026-07-26 10:54:52 +05:00
parent ec01e1ce56
commit 75f0821e3e
2 changed files with 28 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
name: Deploy Site
on:
push:
branches: [main]
workflow_dispatch:
env:
PROJECT_NAME: "shooting-word"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Deploy to VPS
run: |
TARGET_DIR="/var/www/sites/${{ env.PROJECT_NAME }}"
mkdir -p "$TARGET_DIR"
rsync -av --delete \
--exclude='.git*' \
--exclude='*.md' \
--exclude='LICENSE' \
./ "$TARGET_DIR/"