Implement workflow
Some checks failed
Deploy website / deploy (push) Failing after 3s

This commit is contained in:
luaneko 2024-12-03 18:15:20 +11:00
parent b996ac2232
commit 89b988c4e2
Signed by: luaneko
GPG Key ID: 406809B8763FF07A

View File

@ -8,12 +8,19 @@ on:
jobs:
deploy:
runs-on: luare
env:
DEPLOY_HOST: lilac.a.lua.re
steps:
- name: Deploy to caddy
- name: Checkout
uses: actions/checkout@v4
- name: Build project
run: pnpm build
- name: Deploy to server
run: |
eval "$(ssh-agent -s)"
trap 'eval $(ssh-agent -k)' EXIT
ssh-add - <<< "${{ secrets.SSH_KEY }}"
id
ls -lah .
rsync -avzh --delete 'dist/' 'caddy@$DEPLOY_HOST:sites/lua.re/'