Skip to content

Commit

Permalink
github action
Browse files Browse the repository at this point in the history
  • Loading branch information
JimQing committed May 2, 2020
1 parent c9e1003 commit 07c00f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
outputDir: 'dist',
publicPath: '/md/'
}

0 comments on commit 07c00f0

Please sign in to comment.