fix: remove conditional checks for deploy steps
All checks were successful
deploy / build-and-deploy (push) Successful in 1m18s
All checks were successful
deploy / build-and-deploy (push) Successful in 1m18s
This commit is contained in:
@@ -27,7 +27,6 @@ jobs:
|
||||
run: npm run build
|
||||
|
||||
- name: Write deploy key
|
||||
if: ${{ secrets.DEPLOY_SSH_KEY != '' }}
|
||||
env:
|
||||
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||
run: |
|
||||
@@ -42,13 +41,11 @@ jobs:
|
||||
chmod 600 ~/.ssh/deploy_key
|
||||
|
||||
- name: Add known_hosts
|
||||
if: ${{ secrets.DEPLOY_SSH_KEY != '' }}
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
ssh-keyscan -p "${{ secrets.DEPLOY_SSH_PORT }}" -H "${{ secrets.DEPLOY_SSH_HOST }}" >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Deploy via tar over SSH
|
||||
if: ${{ secrets.DEPLOY_SSH_KEY != '' }}
|
||||
run: |
|
||||
tar -C dist -czf - . | \
|
||||
ssh -o BatchMode=yes -o StrictHostKeyChecking=yes -o ConnectTimeout=15 -i ~/.ssh/deploy_key -p "${{ secrets.DEPLOY_SSH_PORT }}" "${{ secrets.DEPLOY_SSH_USER }}@${{ secrets.DEPLOY_SSH_HOST }}" \
|
||||
|
||||
Reference in New Issue
Block a user