ci: update ci workflow for gitea
Deploy Pages / deploy (push) Failing after 3s

This commit is contained in:
2026-07-26 12:03:52 +05:00
parent ec01e1ce56
commit 5434fee0a5
2 changed files with 19 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
name: Deploy Pages
on:
push:
branches: [main] # или master, или любая другая
jobs:
deploy:
runs-on: ubuntu-latest # или label твоего runner'а
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy to /var/www/pages
run: |
TARGET="/var/www/pages/${{ gitea.repository }}"
mkdir -p "$TARGET"
rsync -a --delete ./ "$TARGET/" # ← поменяй на ./public/ или ./ если без билда
# либо просто:
# cp -a . "$TARGET/"