mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-10 12:23:22 +08:00
Migrate to Vite on standalone app
This commit is contained in:
@@ -42,7 +42,10 @@ jobs:
|
||||
python -m pip install --progress-bar off pytest-playwright==0.4.3 # next version is flaky
|
||||
|
||||
- name: Build standalone_app
|
||||
run: make MODE="prd" standalone_app/public/bundle.js
|
||||
working-directory: standalone_app
|
||||
run: |
|
||||
npm install
|
||||
npx vite build --outDir dist
|
||||
|
||||
- name: Install the required browsers
|
||||
run: playwright install
|
||||
|
||||
@@ -31,15 +31,8 @@ jobs:
|
||||
with:
|
||||
node-version: '18'
|
||||
- name: Build standalone_app
|
||||
env:
|
||||
PUBLIC_PATH: /optuna-dashboard/public/
|
||||
run: make MODE="prd" standalone_app/public/bundle.js
|
||||
- name: Create publish directory
|
||||
run: |
|
||||
mkdir gh-publish
|
||||
cp -r standalone_app/public gh-publish/public
|
||||
cp standalone_app/favicon.ico gh-publish/favicon.ico
|
||||
cp standalone_app/github-pages.html gh-publish/index.html
|
||||
working-directory: standalone_app
|
||||
run: npx vite build --base=/optuna-dashboard/public/ --outDir ../gh-pages
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user