Skip to content

Merge pull request #67 from Gokulan-SK/add-tests-components #41

Merge pull request #67 from Gokulan-SK/add-tests-components

Merge pull request #67 from Gokulan-SK/add-tests-components #41

Workflow file for this run

name: Build
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
environment: 'Production'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: install ssh keys
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.SERVER_IP }} > ~/.ssh/known_hosts
- name: Deploy
run: |
ssh ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_IP }} 'cd ${{ secrets.PATH }} && ./deploy.sh'