ci: 调整测试ci

This commit is contained in:
禾几海
2020-10-08 11:22:47 +08:00
parent 23aec69b4f
commit 1d994d16b1
4 changed files with 16 additions and 48 deletions

View File

@@ -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 }}