accounts invoice code #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prod CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using password | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.TMS_HOST }} | |
username: ${{ secrets.TMS_USER }} | |
key: ${{ secrets.TMS_EC2_KEY }} | |
port: ${{ secrets.TMS_SSH_PORT }} | |
script: | | |
source ~/.zshrc | |
cd ~/TMSBackend/ | |
pm2 restart tms --update-env | |
sleep 3 | |
pm2 log tms --nostream |