lua.re/.gitea/workflows/push.yaml
luaneko c59f0742f9
All checks were successful
Deploy website / deploy (push) Successful in 15s
SSH agent forwarding is not necessary for rsync
2024-12-04 14:26:31 +11:00

26 lines
503 B
YAML

name: Deploy website
on:
push:
branches:
- master
jobs:
deploy:
runs-on: luare
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build project
run: |
pnpm install
pnpm build
- name: Deploy to server
run: |
eval "$(ssh-agent -s)"
trap 'eval $(ssh-agent -k)' EXIT
ssh-add - <<< "${{ secrets.SSH_KEY }}"
rsync -avzh --delete 'dist/' "caddy@lilac.a.lua.re:sites/lua.re/"