github action

This commit is contained in:
JimQing 2020-05-02 19:25:38 +08:00
parent c9e100311e
commit 07c00f07ca
3 changed files with 9 additions and 4 deletions

View File

@ -17,11 +17,11 @@ jobs:
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
- name: npm install, build - name: npm install, build
run: | uses: yanglbme/gitee-pages-action@master
npm install
npm run build --if-present
env: env:
CI: true BRANCH: master # 存放产物的分支名称
FOLDER: dist # 存放build后产物的目录
BUILD_SCRIPT: npm install && npm run build # 执行的命令
- name: Sync to Gitee - name: Sync to Gitee
uses: wearerequired/git-mirror-action@master uses: wearerequired/git-mirror-action@master
env: env:

View File

@ -2,6 +2,7 @@
"name": "vue-md", "name": "vue-md",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"homepage": "https://doocs.gitee.io/md",
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",

4
vue.config.js Normal file
View File

@ -0,0 +1,4 @@
module.exports = {
outputDir: 'dist',
publicPath: '/md/'
}