Skip to content

Build UI

Build UI #12

Workflow file for this run

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 目录
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