Skip to content

Commit

Permalink
fix: github actions ssh issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthGupta2510 committed Sep 4, 2023
1 parent a13ead9 commit 97a3a1c
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/react-build-export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 97a3a1c

Please sign in to comment.