mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 06:55:26 +00:00
fix(deploy): build web app for subpath deployment
- workflows use build:app instead of lib build - inject VITE_APP_BASE_URL for prod/dev paths - make vite base configurable via env - update acceptance status for wiki compatibility
This commit is contained in:
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@@ -17,10 +17,10 @@ jobs:
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Install dependencies and build
|
||||
- name: Install dependencies and build web app
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
VITE_APP_BASE_URL=/yys-editor/ npm run build:app
|
||||
|
||||
- name: Deploy to temporary directory
|
||||
uses: appleboy/scp-action@v0.1.6
|
||||
|
||||
4
.github/workflows/deploy_dev.yml
vendored
4
.github/workflows/deploy_dev.yml
vendored
@@ -18,10 +18,10 @@ jobs:
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Install dependencies and build
|
||||
- name: Install dependencies and build web app
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
VITE_APP_BASE_URL=/yys-editor-dev/ npm run build:app
|
||||
|
||||
- name: Deploy to temporary directory
|
||||
uses: appleboy/scp-action@v0.1.6
|
||||
|
||||
Reference in New Issue
Block a user