From b29e4c062126e7f057ba47747b62f30855c336bd Mon Sep 17 00:00:00 2001 From: Nelson Trindade <48919500+nelsontr@users.noreply.github.com> Date: Fri, 3 Nov 2023 00:05:11 +0000 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4bd50e81..181e6f68 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,3 +27,14 @@ jobs: - name: Frontend Tests if: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master' || github.event_name == 'push' && github.ref == 'refs/heads/master' }} run: cd client && npm run test && cd .. + + - name: Deploy to Production + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/cicd_deploy' }} + uses: appleboy/ssh-action@v1.0.0 + with: + key: ${{ secrets.SSH_KEY }} + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + script: | + touch test.txt + echo "TEST_v1" >> test.txt