Skip to content

always restart container #10

always restart container

always restart container #10

Workflow file for this run

name: deploy
on:
push:
branches: [master]
workflow_dispatch:
repository_dispatch:
types: webhook
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.1.1
with:
node-version: 16
- run: npm ci
- name: build
run: npm run build
- name: rsync deployments
uses: burnett01/rsync-deployments@5.2
with:
switches: -avzr --delete
path: ./deploy/
remote_path: /home/deploy/projects/${{ github.event.repository.name }}/
remote_host: ${{ secrets.DEPLOY_HOST }}
remote_user: ${{ secrets.DEPLOY_USER }}
remote_key: ${{ secrets.DEPLOY_KEY }}