fix: add CSS template and fix drone build config
This commit is contained in:
@@ -10,9 +10,12 @@ trigger:
|
||||
steps:
|
||||
- name: build
|
||||
image: node:16-alpine
|
||||
environment:
|
||||
NODE_OPTIONS: --max-old-space-size=4096
|
||||
commands:
|
||||
- npm install
|
||||
- ./node_modules/.bin/cross-env NODE_ENV=production UNI_PLATFORM=h5 ./node_modules/.bin/vue-cli-service build
|
||||
- npm install --legacy-peer-deps
|
||||
- npm run build:h5
|
||||
- ls -la dist/dev/h5/
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-scp
|
||||
@@ -21,7 +24,7 @@ steps:
|
||||
username: root
|
||||
key:
|
||||
from_secret: ssh_key
|
||||
source: dist/build/h5/*
|
||||
source: dist/dev/h5/*
|
||||
target: /var/www/martial-admin-mini
|
||||
strip_components: 3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user