lua.re/.gitea/workflows/push.yaml

26 lines
503 B
YAML
Raw Permalink Normal View History

2024-12-03 18:08:24 +11:00
name: Deploy website
on:
push:
branches:
- master
jobs:
deploy:
runs-on: luare
steps:
2024-12-03 18:15:20 +11:00
- name: Checkout
uses: actions/checkout@v4
- name: Build project
2024-12-03 18:23:07 +11:00
run: |
pnpm install
pnpm build
2024-12-03 18:15:20 +11:00
- name: Deploy to server
2024-12-03 18:08:24 +11:00
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/"