ci: 调整测试ci
This commit is contained in:
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -1,6 +1,3 @@
|
||||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||
|
||||
name: Build
|
||||
|
||||
on:
|
||||
@@ -18,8 +15,8 @@ jobs:
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- run: npm install -g @angular/cli
|
||||
- run: bash build.sh
|
||||
- run: npm install
|
||||
- run: npm run lint && npm run build:prod
|
||||
|
||||
- name: Upload a Build Artifact
|
||||
uses: actions/upload-artifact@v2.1.4
|
||||
@@ -27,8 +24,12 @@ 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
|
||||
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
|
||||
Reference in New Issue
Block a user