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
|
run: npm run build
|
||||||
|
|
||||||
- name: Write deploy key
|
- name: Write deploy key
|
||||||
if: ${{ secrets.DEPLOY_SSH_KEY != '' }}
|
|
||||||
env:
|
env:
|
||||||
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
run: |
|
run: |
|
||||||
@@ -42,13 +41,11 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/deploy_key
|
chmod 600 ~/.ssh/deploy_key
|
||||||
|
|
||||||
- name: Add known_hosts
|
- name: Add known_hosts
|
||||||
if: ${{ secrets.DEPLOY_SSH_KEY != '' }}
|
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
ssh-keyscan -p "${{ secrets.DEPLOY_SSH_PORT }}" -H "${{ secrets.DEPLOY_SSH_HOST }}" >> ~/.ssh/known_hosts
|
ssh-keyscan -p "${{ secrets.DEPLOY_SSH_PORT }}" -H "${{ secrets.DEPLOY_SSH_HOST }}" >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Deploy via tar over SSH
|
- name: Deploy via tar over SSH
|
||||||
if: ${{ secrets.DEPLOY_SSH_KEY != '' }}
|
|
||||||
run: |
|
run: |
|
||||||
tar -C dist -czf - . | \
|
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 }}" \
|
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