From 328949df9e41377a0064a15d36491a2914e6c46c Mon Sep 17 00:00:00 2001 From: talktao Date: Thu, 25 Aug 2022 18:51:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Aci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 6 ++++-- ci.yml | 27 --------------------------- 2 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 763e103..b30c8c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ # Simple workflow for deploying static content to GitHub Pages -name: Deploy static content to Pages +name: Vue3-Vite-Vant-TS-H5 on: # Runs on pushes targeting the default branch @@ -36,9 +36,11 @@ jobs: uses: actions/upload-pages-artifact@v1 with: # Upload entire repository - path: '.' + # path: '.' branch: gh-pages # 部署后提交到那个分支 folder: dist # 这里填打包好的目录名称 + REPOSITORY_NAME: talktao/talktao.github.io # 这是我的 github page 仓库 + TARGET_FOLDER: Vue3-Vite-Vant-TS-H5 # 打包的文件将放到静态服务器 github-actions-demo 目录下 - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v1 diff --git a/ci.yml b/ci.yml deleted file mode 100644 index 4810824..0000000 --- a/ci.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Build and Deploy -on: # 监听 main 分支上的 push 事件 - push: - branches: - - main -jobs: - build-and-deploy: - runs-on: ubuntu-latest # 构建环境使用 ubuntu - steps: - - name: Checkout - uses: actions/checkout@v2.3.1 - with: - persist-credentials: false - - - name: Install and Build # 下载依赖 打包项目 - run: | - yarn - yarn build - - - name: Deploy # 将打包内容发布到 github page - uses: JamesIves/github-pages-deploy-action@3.5.9 # 使用别人写好的 actions - with: # 自定义环境变量 - ACCESS_TOKEN: ${{ secrets.VUE3_TOKEN }} # VUE_ADMIN_TEMPLATE 是我的 secret 名称,需要替换成你的 - BRANCH: main - FOLDER: dist - REPOSITORY_NAME: talktao/talktao.github.io # 这是我的 github page 仓库 - TARGET_FOLDER: Vue3-Vite-Vant-TS-H5 # 打包的文件将放到静态服务器 github-actions-demo 目录下