From 1ba81c9ec1250f1cdbf00a7e8b7bdb3cfa55decd Mon Sep 17 00:00:00 2001 From: zyronon Date: Thu, 4 Apr 2024 00:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0github=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../功能请求---feature-request.md | 20 + .../问题报告---bug-report-.md | 24 + .github/workflows/deploy-pages.yml | 59 + stats.html | 18750 ---------------- 4 files changed, 103 insertions(+), 18750 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/功能请求---feature-request.md create mode 100644 .github/ISSUE_TEMPLATE/问题报告---bug-report-.md create mode 100644 .github/workflows/deploy-pages.yml delete mode 100644 stats.html diff --git a/.github/ISSUE_TEMPLATE/功能请求---feature-request.md b/.github/ISSUE_TEMPLATE/功能请求---feature-request.md new file mode 100644 index 0000000..04dea38 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/功能请求---feature-request.md @@ -0,0 +1,20 @@ +--- +name: 功能请求 | Feature request +about: 创建一个功能请求 | Create a feature request +title: 功能请求 | Feature request +labels: '' +assignees: '' + +--- + +1、描述 +请尽可能详细描述您需要的特性。 + +2、这个功能解决了什么问题? +请尽可能详尽地说明这个需求的用例和场景 + +1. Description +Please provide as detailed a description as possible of the features you need. + +2. What problem does this feature solve? +Please provide as detailed a description of the use cases and scenarios for this requirement as possible diff --git a/.github/ISSUE_TEMPLATE/问题报告---bug-report-.md b/.github/ISSUE_TEMPLATE/问题报告---bug-report-.md new file mode 100644 index 0000000..4b9293b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/问题报告---bug-report-.md @@ -0,0 +1,24 @@ +--- +name: '问题报告 | Bug report ' +about: '创建一个问题报告 | Create a bug report ' +title: '问题报告 | Bug report ' +labels: '' +assignees: '' + +--- + +### 注意:请确认问题可以在浏览器的 无痕模式 下复现,而不是自己安装的其他插件或脚本导致的 + +1、描述 +在这里填写问题描述 + +2、截图 +可以直接按Ctrl + V 复制在这里(复制成功后会显示一串地址) + +### Note: Please confirm that the problem can be reproduced in the browser's traceless mode, rather than being caused by other plugins or scripts installed by yourself + +1. Description +Fill in the problem description here + +2. Screenshot +You can directly press Ctrl+V to copy here (a string of addresses will be displayed after successful copying) diff --git a/.github/workflows/deploy-pages.yml b/.github/workflows/deploy-pages.yml new file mode 100644 index 0000000..80b84e2 --- /dev/null +++ b/.github/workflows/deploy-pages.yml @@ -0,0 +1,59 @@ +# 将静态内容部署到 GitHub Pages 的简易工作流程 +name: Deploy static content to Pages + +on: + # 仅在推送到默认分支时运行。 + push: + branches: [ 'master' ] + + # 这个选项可以使你手动在 Action tab 页面触发工作流 + workflow_dispatch: + +# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages。 +permissions: + contents: read + pages: write + id-token: write + +# 允许一个并发的部署 +concurrency: + group: 'pages' + cancel-in-progress: true + +jobs: + # 单次部署的工作描述 + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8 + + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Build + run: pnpm run build + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + # Upload dist repository + path: './dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1 \ No newline at end of file diff --git a/stats.html b/stats.html deleted file mode 100644 index 4c0afc8..0000000 --- a/stats.html +++ /dev/null @@ -1,18750 +0,0 @@ - - - - - - - Rollup Visualizer - - - -
- - - -