Skip to content

chore(*): update ci

chore(*): update ci #3

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: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: pm2 restart ${{ vars.GITHUB_REPOSITORY }}