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'
|
node-version: '12.x'
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run lint && npm run build:prod
|
- run: npm run lint && npm run build:prod
|
||||||
|
- run: cd dist/index/ && tar -cf index.tar ./* && mv index.tar ../../
|
||||||
|
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v2.1.4
|
uses: actions/upload-artifact@v2.1.4
|
||||||
@@ -24,9 +25,6 @@ jobs:
|
|||||||
name: dist
|
name: dist
|
||||||
path: ./dist/index/*
|
path: ./dist/index/*
|
||||||
|
|
||||||
- name: Package products
|
|
||||||
- run: cd dist/index/ && tar -cf index.tar ./* && cp index.tar ../../
|
|
||||||
|
|
||||||
- name: SCP
|
- name: SCP
|
||||||
uses: appleboy/scp-action@master
|
uses: appleboy/scp-action@master
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user