Build UI #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build UI | |
on: workflow_dispatch | |
jobs: | |
build-UI: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: build UI | |
run: | | |
cd ui | |
npm install @vue/cli-service @vue/cli-plugin-babel @vue/cli-plugin-eslint @vue/cli-plugin-router | |
npm run build | |
- name: Upload UI artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: UI | |
path: dist/ # 上传 dist 目录 | |
- run: ls | |
build-jar: | |
runs-on: ubuntu-latest | |
needs: build-UI | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: UI | |
path: src/main/resources/ | |
- run: src/main/resources |