ci: 调整ci
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -17,6 +17,7 @@ jobs:
|
||||
node-version: '12.x'
|
||||
- run: npm install
|
||||
- run: npm run lint && npm run build:prod
|
||||
- run: cd dist/index/ && tar -cf index.tar ./* && mv index.tar ../../
|
||||
|
||||
- name: Upload a Build Artifact
|
||||
uses: actions/upload-artifact@v2.1.4
|
||||
@@ -24,9 +25,6 @@ jobs:
|
||||
name: dist
|
||||
path: ./dist/index/*
|
||||
|
||||
- name: Package products
|
||||
- run: cd dist/index/ && tar -cf index.tar ./* && cp index.tar ../../
|
||||
|
||||
- name: SCP
|
||||
uses: appleboy/scp-action@master
|
||||
|
||||
|
||||
Reference in New Issue
Block a user