Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsontr authored Nov 3, 2023
1 parent 8e2b7ba commit b29e4c0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b29e4c0

Please sign in to comment.