Update cicd_process.yml #67
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: deploy to production | |
on: | |
push: | |
branches: [ dev ] | |
jobs: | |
build: | |
name: Deploying to Prod | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote connection | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.CICD_HOST }} | |
username: ${{ secrets.CICD_USERNAME }} | |
key: ${{ secrets.CICD_SECRET }} | |
port: ${{ secrets.PORT }} | |
script: | | |
cd /var/www/dwh-his-frontend | |
sudo git pull | |
sudo npm run build /var/www/histest/ |