Browse Source

添加github action

pull/49/head
zyronon 1 year ago
parent
commit
1ba81c9ec1
  1. 20
      .github/ISSUE_TEMPLATE/功能请求---feature-request.md
  2. 24
      .github/ISSUE_TEMPLATE/问题报告---bug-report-.md
  3. 59
      .github/workflows/deploy-pages.yml
  4. 18750
      stats.html

20
.github/ISSUE_TEMPLATE/功能请求---feature-request.md

@ -0,0 +1,20 @@ @@ -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

24
.github/ISSUE_TEMPLATE/问题报告---bug-report-.md

@ -0,0 +1,24 @@ @@ -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)

59
.github/workflows/deploy-pages.yml

@ -0,0 +1,59 @@ @@ -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

18750
stats.html

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save