From 9ec158d60971437cf1590f8e181132d679de99d5 Mon Sep 17 00:00:00 2001 From: talktao Date: Thu, 25 Aug 2022 20:43:51 +0800 Subject: [PATCH] feat: ci --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b69169..ea417c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,3 +29,13 @@ jobs: - run: npm ci - run: npm run build --if-present - run: npm test + + deploy: + - name: Deploy + uses: JamesIves/github-pages-deploy-action@3.5.9 # 使用别人写好的 actions + with: # 自定义环境变量 + ACCESS_TOKEN: ${{ secrets.VUE3_TOKEN }} # VUE3_TOKEN 是我的 secret 名称,需要替换成你的 + BRANCH: gh-pages + FOLDER: dist + REPOSITORY_NAME: talktao/talktao.github.io # 这是我的 github page 仓库 + TARGET_FOLDER: vue3-vite-vant-ts-h5 # 打包的文件将放到静态服务器 vue3-vite-vant-ts-h5 目录下