Files
cv/.gitea/workflows/deploy.yml
T
2026-10-10 14:02:47 +07:00

33 lines
859 B
YAML

name: Deploy Static Site
on:
push:
branches:
- master
jobs:
build and deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: pnpm/setup@v3
with:
cache: true
version: ^12.0.0
runtime: node@24
- run: node --version
- run: pnpm build
- name: List files in dist
run: |
ls ${{ gitea.workspace }}/dist
- name: rsync deployments
uses: burnett01/rsync-deployments@v9
with:
debug: true
switches: -avzr --delete
path: dist/
remote_path: /opt/stacks/dong-site/dist/
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_port: ${{ secrets.DEPLOY_SSH_PORT }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}