From 07c00f07caa7e2b485ae8ada84cc639d79de0e41 Mon Sep 17 00:00:00 2001 From: JimQing Date: Sat, 2 May 2020 19:25:38 +0800 Subject: [PATCH] github action --- .github/workflows/sync.yml | 8 ++++---- package.json | 1 + vue.config.js | 4 ++++ 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 vue.config.js diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 4520e40..1210277 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -17,11 +17,11 @@ jobs: with: node-version: ${{ matrix.node-version }} - name: npm install, build - run: | - npm install - npm run build --if-present + uses: yanglbme/gitee-pages-action@master env: - CI: true + BRANCH: master # 存放产物的分支名称 + FOLDER: dist # 存放build后产物的目录 + BUILD_SCRIPT: npm install && npm run build # 执行的命令 - name: Sync to Gitee uses: wearerequired/git-mirror-action@master env: diff --git a/package.json b/package.json index 985eaa8..c1961f0 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "vue-md", "version": "0.1.0", "private": true, + "homepage": "https://doocs.gitee.io/md", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..ab81f53 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,4 @@ +module.exports = { + outputDir: 'dist', + publicPath: '/md/' +} \ No newline at end of file