mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
33 lines
859 B
YAML
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 }} |