Update .forgejo/workflows/deploy-hot.yml

This commit is contained in:
yaxu 2026-02-09 20:56:48 +01:00
parent d802907dac
commit 6d9b899ae4

View file

@ -13,8 +13,6 @@ jobs:
build:
if: ${{ github.event.label.name == 'serve-hot' }}
runs-on: docker
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
@ -31,6 +29,8 @@ jobs:
run: pnpm build
- name: Deploy
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
eval $(ssh-agent -s)
echo "$SSH_PRIVATE_KEY" | ssh-add -
@ -39,4 +39,4 @@ jobs:
ssh-keyscan matrix.toplap.org > ~/.ssh/known_hosts
rsync -atv --delete --delete-after --progress \
./website/dist/ \
strudel@matrix.toplap.org:/home/strudel.cc/deploy/pr-${{ github.event.pull_request.number }}.strudel.cc
strudel@matrix.toplap.org:/home/strudel/deploy/pr-${{ github.event.pull_request.number }}.hot.strudel.cc