From 97a3a1cae1f54b77b9765fde85dec4383167b9c7 Mon Sep 17 00:00:00 2001 From: Parth Gupta Date: Tue, 5 Sep 2023 01:19:15 +0530 Subject: [PATCH] fix: github actions ssh issue --- .github/workflows/react-build-export.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/react-build-export.yml b/.github/workflows/react-build-export.yml index ea6c3db..90bdbaf 100644 --- a/.github/workflows/react-build-export.yml +++ b/.github/workflows/react-build-export.yml @@ -10,15 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v3 - - name: Build and export with the latest action rev - uses: praneeth-rdy/static-build-export-action@main - env: - CI: false - PROJECT_DIR: . - BUILD_BRANCH: build - TOKEN: ${{ secrets.ACTIONS_TOKEN }} - + uses: actions/checkout@v3 deploy: needs: build-and-export @@ -35,6 +27,6 @@ jobs: - name: SSH into remote server run: | - ssh -i ${{ secrets.SERVER_SSH_KEY }} ubuntu@ec2-65-1-222-220.ap-south-1.compute.amazonaws.com 'cd ./tsg-backend/ && ./.git/hooks/post-receive' + ssh -i <(echo "${{ secrets.SERVER_SSH_KEY }}") ubuntu@ec2-65-1-222-220.ap-south-1.compute.amazonaws.com 'cd ./tsg-backend/ && ./.git/hooks/post-receive' env: SERVER_SSH_KEY: ${{ secrets.SERVER_SSH_KEY }} \ No newline at end of file