From af7b96d099fc05d9c79e90d0c45b1aec72729f00 Mon Sep 17 00:00:00 2001 From: rssws Date: Sun, 26 Jun 2022 01:25:26 +0200 Subject: [PATCH] Update build-and-push-and-deploy.yml --- .github/workflows/build-and-push-and-deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-push-and-deploy.yml b/.github/workflows/build-and-push-and-deploy.yml index 764a8de..8ddd005 100644 --- a/.github/workflows/build-and-push-and-deploy.yml +++ b/.github/workflows/build-and-push-and-deploy.yml @@ -42,14 +42,13 @@ jobs: - name: Create SSH private key run: | mkdir -p ~/.ssh/ - echo "$SSH_PRIVATE_KEY" > ../private.key - sudo chmod 600 ../private.key + echo "$SSH_PRIVATE_KEY" > ~/.ssh/private + sudo chmod 600 ~/.ssh/private echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts shell: bash env: SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }} SSH_KNOWN_HOSTS: ${{ secrets.DEPLOY_SSH_KNOWN_HOSTS }} - SSH_KEY_PATH: ${{ github.workspace }}/../private.key - name: Replace version in .env.prod run: |