From 08173489e147ad2d0beb6a1cc4a351a20545982a Mon Sep 17 00:00:00 2001 From: JimQing Date: Sat, 2 May 2020 19:45:26 +0800 Subject: [PATCH] create build.yml --- .github/workflows/build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1a0c8b4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: build + +on: + push: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@master # 将代码拷贝到虚机中 + - name: npm install, build + uses: yanglbme/gitee-pages-action@master + env: + BRANCH: gh-page # 存放产物的分支名称 + FOLDER: dist # 存放build后产物的目录 + BUILD_SCRIPT: npm install && npm run build # 执行的命令 \ No newline at end of file