Stop Dev Deployment #274
This file contains hidden or 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: Zuri main dev Deployment | |
| # on: | |
| # Triggers the workflow on push or pull request events but only for the main branch | |
| # push: | |
| # branches: [dev] | |
| # Allows you to run this workflow manually from the Actions tab | |
| # workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Git Pull on Server | |
| uses: appleboy/ssh-action@master | |
| with: | |
| host: ${{ secrets.ZURI_HOST }} | |
| username: ${{ secrets.USERNAME }} | |
| password: ${{ secrets.PASSWORD }} | |
| script: | | |
| cd /var/www/zuri.chat/zurimain/dev/zc_main | |
| git fetch --all | |
| git reset --hard origin/dev | |
| git stash | |
| git pull origin dev | |
| yarn install --ignore-engines | |
| yarn build | |
| pm2 restart zc_main_dev |