Skip to content

Commit 159f33b

Browse files
committedAug 9, 2024·
Merge remote-tracking branch 'origin/master'
2 parents 93bc602 + b1606ad commit 159f33b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
 

‎.github/workflows/node.js.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Node.js CI
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v2
11+
- name: Set up Node.JS
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: '20.x'
15+
- run: npm install
16+
- run: npm run build
17+
- name: Deploy to server
18+
uses: appleboy/scp-action@master
19+
with:
20+
host: ${{ secrets.HOST }}
21+
port: ${{ secrets.PORT }}
22+
username: ${{ secrets.USERNAME }}
23+
key: ${{ secrets.KEY }}
24+
source: "./build/*"
25+
target: "/root/onrain/frontend"
26+
strip_components: 1
27+
overwrite: true

0 commit comments

Comments
 (0)
Please sign in to comment.