Skip to content

Commit 3c5cc40

Browse files
committed
test: github action ssh deploy 6
1 parent c5d6b5c commit 3c5cc40

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,16 @@ on:
66

77
jobs:
88
build-and-deploy:
9-
runs-on: ubuntu-latest
10-
strategy:
11-
matrix:
12-
node-version: [12.x]
139
steps:
1410

1511
# 下载源码
1612
- name: Checkout
17-
uses: actions/checkout@v2
18-
with:
19-
path: nuxt
13+
uses: actions/checkout@master
2014

2115
# 打包构建
2216
- name: Build
23-
uses: actions/setup-node@v1
24-
with:
25-
node-version: ${{ matrix.node-version }}
26-
- run: npm run install
17+
uses: actions/setup-node@master
18+
- run: npm install
2719
- run: npm run build
2820
- run: tar -zcvf release.tgz .nuxt server nuxt.config.js package.json
2921

0 commit comments

Comments
 (0)