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