Skip to content

Commit a7edb0e

Browse files
committed
ci: add deploy workflow
1 parent a69c0be commit a7edb0e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 18
15+
cache: 'npm'
16+
- name: install dependencies
17+
run: npm install --include=dev
18+
- name: build
19+
run: npm run build
20+
- name: deploy build
21+
uses: burnett01/rsync-deployments@7.0.1
22+
with:
23+
switches: -avr
24+
path: dist/
25+
remote_path: ${{ secrets.DEPLOY_PATH }}
26+
remote_host: ${{ secrets.DEPLOY_HOST }}
27+
remote_port: ${{ secrets.DEPLOY_PORT }}
28+
remote_user: ${{ secrets.DEPLOY_USER }}
29+
remote_key: ${{ secrets.DEPLOY_KEY }}

0 commit comments

Comments
 (0)