lua.re/.gitea/workflows/push.yaml
luaneko a7aa4bd7c8
Some checks failed
Deploy website / deploy (push) Failing after 57s
Fix invalid variable substitution
2024-12-03 18:24:07 +11:00

29 lines
545 B
YAML

name: Deploy website
on:
push:
branches:
- master
jobs:
deploy:
runs-on: luare
env:
DEPLOY_HOST: lilac.a.lua.re
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@$DEPLOY_HOST:sites/lua.re/"