Initial commit: Tapalka monorepo (bot, front, strapi)
This commit is contained in:
27
CMyTapper/robucks-bot/.github/workflows/prod.yaml
vendored
Normal file
27
CMyTapper/robucks-bot/.github/workflows/prod.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Deploy to prod
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy with pm2
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{secrets.PROD_SSH_HOST}}
|
||||
username: ${{secrets.PROD_SSH_USERNAME}}
|
||||
password: ${{secrets.PROD_SSH_PASSWORD}}
|
||||
script_stop: true
|
||||
script: |
|
||||
export NVM_DIR=~/.nvm
|
||||
source ~/.nvm/nvm.sh
|
||||
cd ${{secrets.PROD_PROJECT_PATH}}
|
||||
git checkout main
|
||||
git pull
|
||||
yarn install
|
||||
pm2 restart ecosystem.config.js
|
||||
Reference in New Issue
Block a user