Files
github-support-sla-monitor/.gitea/workflows/deploy.yaml
T
Ku6epXBOCTuK 43148ec32f
Deploy Pages / deploy (push) Successful in 13m41s
ci: add workflow
2026-08-22 17:07:12 +05:00

35 lines
720 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]
jobs:
deploy:
runs-on: ubuntu-latest # метка твоего runner'а
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Build
run: |
npm ci
npm run build
- name: Deploy to /var/www/pages
run: |
if ! command -v rsync &> /dev/null; then
sudo apt-get update && sudo apt-get install -y rsync
fi
TARGET="/var/www/pages/${{ gitea.repository }}"
mkdir -p "$TARGET"
rsync -a --delete dist/ "$TARGET/"