Skip to content

Commit 034d38b

Browse files
committed
添加deploy actions
1 parent 6ecf776 commit 034d38b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI&&CD
2+
3+
on:
4+
push:
5+
branches:
6+
- deploy
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v1
14+
15+
- name: Use Node.js 18.x
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '18.x'
19+
20+
- name: Dependent environment
21+
run: |
22+
npm i -g @angular/cli
23+
npm i
24+
25+
- name: Compile
26+
run: |
27+
npm run build
28+
29+
- name: Deploy
30+
uses: garygrossgarten/[email protected]
31+
with:
32+
local: dist\nice-blockly
33+
remote: ${{ secrets.TARGET }}
34+
host: ${{ secrets.HOST }}
35+
username: ubuntu
36+
privateKey: ${{ secrets.PRIVATEKEY }}

0 commit comments

Comments
 (0)