diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..aaa3fce --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,37 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the V1.0-beat branch + push: + branches: [ master ] + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# jobs 表示要执行的一项或者多项任务 +jobs: + # 任务名,可自定义 + build-and-deploy: + # runs-on字段指定运行所需要的虚拟机环境。它是必填字段。目前可用的虚拟机如下。 + runs-on: ubuntu-latest + # steps表示执行步骤 + steps: + # 检出代码,这里用了 actions/checkout@master 库来完成 + - name: Checkout + uses: actions/checkout@master + # 这里展示了如何执行多条命令 + - name: Install and Build + run: | + yarn + yarn build + # 这里引用了别人写好的发布库,具体参数信息可以查阅上面的链接 + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@4.0.0 + with: + branch: gh-pages + folder: dist diff --git a/README.md b/README.md index b6c134b..f125361 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ## 效果图 -![home](.\src\assets\images\home.png) +![https://gitee.com/save_money/Easy-Editor/raw/master/src/assets/images/home.png](https://gitee.com/save_money/Easy-Editor/raw/master/src/assets/images/home.png) ## 功能 diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..795492a --- /dev/null +++ b/vue.config.js @@ -0,0 +1,3 @@ +module.exports = { + publicPath:'./' +}