Files
shooting-word/.github/workflows/deploy_gitea.yml
T
Ku6epXBOCTuK 75f0821e3e
Deploy Site / deploy (push) Failing after 16s
ci: update ci workflow for gitea
2026-07-26 10:54:52 +05:00

29 lines
539 B
YAML

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/"