From a13ead9ef108ae3608da86db59140030f859de79 Mon Sep 17 00:00:00 2001 From: Parth Gupta Date: Sat, 2 Sep 2023 06:36:21 +0530 Subject: [PATCH] fix: include cd in github actions --- .github/workflows/react-build-export.yml | 20 ++++++++++++++++++++ src/data/secyData.js | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/react-build-export.yml b/.github/workflows/react-build-export.yml index e1bf900c..ea6c3dbc 100644 --- a/.github/workflows/react-build-export.yml +++ b/.github/workflows/react-build-export.yml @@ -18,3 +18,23 @@ jobs: PROJECT_DIR: . BUILD_BRANCH: build TOKEN: ${{ secrets.ACTIONS_TOKEN }} + + + deploy: + needs: build-and-export + runs-on: ubuntu-latest + steps: + - name: Set up SSH key + run: | + mkdir -p ~/.ssh/ + echo "$SERVER_SSH_KEY" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts + env: + SERVER_SSH_KEY: ${{ secrets.SERVER_SSH_KEY }} + + - 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' + env: + SERVER_SSH_KEY: ${{ secrets.SERVER_SSH_KEY }} \ No newline at end of file diff --git a/src/data/secyData.js b/src/data/secyData.js index 2cb0fa18..fa137d69 100755 --- a/src/data/secyData.js +++ b/src/data/secyData.js @@ -305,7 +305,7 @@ export const secyData = { "RollNo": "22CH10003", "Name": "Aditya Deep", "Post": "Secretary Web", - "img": "22CH10003.png", + "img": "22CH10003.jpg", "Email": "adityadeep3007@gmail.com", "Contact": 8603847976, "Insti Email": "adityadeep@kgpian.iitkgp.ac.in",