migration update #62
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 Production CMS | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy Production CMS | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy Production CMS via SSH | |
uses: appleboy/ssh-action@v0.1.10 | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
port: ${{ secrets.SSH_PORT }} | |
script: | | |
cd strapi/dilmahtea.me/main | |
git pull | |
npm run cs import -- --yes | |
npm i | |
npm run build | |
pm2 restart strapi |