Update deploy action
Some checks failed
Build and Deploy MkDocs / build-deploy (push) Failing after 38s
Some checks failed
Build and Deploy MkDocs / build-deploy (push) Failing after 38s
This commit is contained in:
parent
bb09b24c53
commit
de02359c41
@ -36,15 +36,12 @@ jobs:
|
|||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
ssh-keyscan -p ${{
|
ssh-keyscan ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
|
||||||
secrets.DEPLOY_PORT || 22
|
|
||||||
}} ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
- name: Deploy with rsync
|
- name: Deploy with rsync
|
||||||
run: |
|
run: |
|
||||||
rsync -avz --delete \
|
rsync -avz --delete \
|
||||||
--filter='P error/' \
|
--filter='P error/' \
|
||||||
--filter='P stats/' \
|
--filter='P stats/' \
|
||||||
-e "ssh -v -p ${{ secrets.DEPLOY_PORT || 22 }}" \
|
|
||||||
site/ \
|
site/ \
|
||||||
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:/var/www/dev.postalpoint.app/web
|
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:/var/www/dev.postalpoint.app/web
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user