Skip to content

chore(*): update ci

chore(*): update ci #4

Workflow file for this run

name: deploy
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Installing
run: yarn install
- name: Building
run: yarn build
- name: Testing
run: yarn test
- name: Deploying
uses: burnett01/rsync-deployments@7.0.1
with:
switches: -a --delete --progress
path: app/
remote_path: ${{ secrets.SSH_REMOTE_DIR }}
remote_host: ${{ secrets.SSH_HOST }}
remote_user: ${{ secrets.SSH_USER }}
remote_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Restarting
uses: JimCronqvist/action-ssh@master
with:
hosts: ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}
privateKey: ${{ secrets.SSH_PRIVATE_KEY }}
command: pm2 restart ${{ vars.GITHUB_REPOSITORY }}