fix: remove conditional checks for deploy steps
All checks were successful
deploy / build-and-deploy (push) Successful in 1m18s

This commit is contained in:
voson
2026-02-03 14:05:38 +08:00
parent 6793f21f8b
commit 351d21b13b

View File

@@ -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 }}" \