26 lines
503 B
YAML
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/"
|