Update .forgejo/workflows/deploy-hot.yml
This commit is contained in:
parent
d802907dac
commit
6d9b899ae4
1 changed files with 3 additions and 3 deletions
|
|
@ -13,8 +13,6 @@ jobs:
|
||||||
build:
|
build:
|
||||||
if: ${{ github.event.label.name == 'serve-hot' }}
|
if: ${{ github.event.label.name == 'serve-hot' }}
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
env:
|
|
||||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
|
|
@ -31,6 +29,8 @@ jobs:
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
run: |
|
run: |
|
||||||
eval $(ssh-agent -s)
|
eval $(ssh-agent -s)
|
||||||
echo "$SSH_PRIVATE_KEY" | ssh-add -
|
echo "$SSH_PRIVATE_KEY" | ssh-add -
|
||||||
|
|
@ -39,4 +39,4 @@ jobs:
|
||||||
ssh-keyscan matrix.toplap.org > ~/.ssh/known_hosts
|
ssh-keyscan matrix.toplap.org > ~/.ssh/known_hosts
|
||||||
rsync -atv --delete --delete-after --progress \
|
rsync -atv --delete --delete-after --progress \
|
||||||
./website/dist/ \
|
./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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue