Files
shooting-word/.github/workflows/deploy_gitea.yml
T
Ku6epXBOCTuK 5434fee0a5
Deploy Pages / deploy (push) Failing after 3s
ci: update ci workflow for gitea
2026-07-26 12:03:52 +05:00

20 lines
585 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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/"