lua.re/.gitea/workflows/push.yaml
luaneko 8d5c43cb66
All checks were successful
Deploy website / deploy (push) Successful in 15s
Ignore host key verification
2024-12-03 18:27:52 +11:00

30 lines
658 B
YAML

name: Deploy website
on:
push:
branches:
- master
jobs:
deploy:
runs-on: luare
env:
DEPLOY_HOST: lilac.a.lua.re
SSH_OPTS: -o ForwardAgent=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
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 -avzhe "ssh $SSH_OPTS" --delete 'dist/' "caddy@$DEPLOY_HOST:sites/lua.re/"