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