Skip to content

Merge pull request #3 from codante-io/create-new-content #11

Merge pull request #3 from codante-io/create-new-content

Merge pull request #3 from codante-io/create-new-content #11

Workflow file for this run

name: Deploy to production
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy with pm2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
script: |
rm -rf /var/www/codante-changelog
git clone --depth 1 [email protected]:codante-io/changelog.git /var/www/codante-changelog
cd /var/www/codante-changelog
npm install
npm run build
pm2 restart codante-changelog