Fix deploy
This commit is contained in:
parent
d384824480
commit
fdeab1c298
1 changed files with 4 additions and 7 deletions
11
.github/workflows/publish.yaml
vendored
11
.github/workflows/publish.yaml
vendored
|
@ -30,10 +30,7 @@ jobs:
|
||||||
needs: [push_to_registry]
|
needs: [push_to_registry]
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: appleboy/ssh-action@master
|
run: |
|
||||||
with:
|
TEMP=$(mktemp)
|
||||||
host: ${{ secrets.DEPLOY_HOST }}
|
echo "${{ secrets.DEPLOY_KEY }}" > $TEMP
|
||||||
username: ${{ secrets.DEPLOY_USERNAME }}
|
ssh -o StrictHostKeyChecking=no -i $TEMP ${{ secrets.DEPLOY_USERNAME }}@${{ secrets.DEPLOY_HOST }} /mnt/data/blog/update
|
||||||
key: ${{ secrets.DEPLOY_KEY }}
|
|
||||||
port: ${{ secrets.DEPLOY_PORT }}
|
|
||||||
script: /mnt/data/blog/update
|
|
||||||
|
|
Reference in a new issue