Skip to content

refactor(*): update imports paths #8

refactor(*): update imports paths

refactor(*): update imports paths #8

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: '20.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: dist/
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 ${{ secrets.PM2_NAME }}