-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (40 loc) · 1.29 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Node.js CI
on:
release:
types: [published]
jobs:
depoly:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Set yarn version
run: |
corepack enable
yarn set version stable
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: rsync deployments
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: build/
remote_path: /data/wwwroot/docs.warudo.app/
remote_host: ${{ secrets.DEPLOY_SSH_HOST }}
remote_port: ${{ secrets.DEPLOY_SSH_PORT }}
remote_user: ${{ secrets.DEPLOY_SSH_USERNAME }}
remote_key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
# - name: Upload production-ready build files
# run: yarn deploy:server
# env: # Or as an environment variable
# DEPLOY_SSH_PORT: ${{ secrets.DEPLOY_SSH_PORT }}
# DEPLOY_SSH_USERNAME: ${{ secrets.DEPLOY_SSH_USERNAME }}
# DEPLOY_SSH_PASSWORD: ${{ secrets.DEPLOY_SSH_PASSWORD }}
# DEPLOY_SSH_HOST: ${{ secrets.DEPLOY_SSH_HOST }}