first commit
This commit is contained in:
115
node_modules/hexo-theme-redefine/.github/ISSUE_TEMPLATE/bug-chinese.yml
generated
vendored
Normal file
115
node_modules/hexo-theme-redefine/.github/ISSUE_TEMPLATE/bug-chinese.yml
generated
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
name: Bug 提交 [中文版本]
|
||||
description: 提交 Redefine 主题的 Bug 报告
|
||||
title: "[BUG] "
|
||||
labels: ["bug"]
|
||||
assignees: ["EvanNotFound"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
感谢您提交 Bug 报告!请填写以下信息以帮助我们更好地解决问题。
|
||||
|
||||
- type: checkboxes
|
||||
id: pre-check
|
||||
attributes:
|
||||
label: 提交前检查
|
||||
options:
|
||||
- label: 我已执行 `hexo clean` 并重新生成,问题仍然存在
|
||||
required: true
|
||||
- label: 我已更新到[最新版本](https://redefine-docs.ohevan.com/getting-started#%E6%9B%B4%E6%96%B0)
|
||||
required: true
|
||||
- label: 我已确认[同步了主题最新配置文件](https://redefine-docs.ohevan.com/getting-started#%E8%BF%81%E7%A7%BB%E9%85%8D%E7%BD%AE)
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: bug-description
|
||||
attributes:
|
||||
label: Bug 描述
|
||||
description: 请详细描述您遇到的问题,并提供相关配置文件内容(敏感信息请用 *** 替换)
|
||||
placeholder: |
|
||||
问题描述:
|
||||
|
||||
相关配置:
|
||||
```yaml
|
||||
# 在此粘贴配置
|
||||
```
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: reproduce
|
||||
attributes:
|
||||
label: 复现步骤
|
||||
value: |
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: 预期行为
|
||||
description: 请描述正常情况下应该是什么样的
|
||||
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: 截图
|
||||
description: 如果可以,请提供截图以帮助说明问题
|
||||
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: 相关日志输出
|
||||
description: 请复制并粘贴任何相关的日志输出。这将自动格式化为代码,因此不需要反引号。
|
||||
render: shell
|
||||
|
||||
- type: dropdown
|
||||
id: browsers
|
||||
attributes:
|
||||
label: 使用的浏览器
|
||||
multiple: true
|
||||
options:
|
||||
- Chrome
|
||||
- Firefox
|
||||
- Safari
|
||||
- Edge
|
||||
- 其他
|
||||
|
||||
- type: dropdown
|
||||
id: os
|
||||
attributes:
|
||||
label: 操作系统
|
||||
options:
|
||||
- Windows
|
||||
- macOS
|
||||
- Linux
|
||||
- iOS
|
||||
- Android
|
||||
- 其他
|
||||
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: 浏览器版本
|
||||
placeholder: "例如:Chrome 108.0.5359.124"
|
||||
|
||||
- type: dropdown
|
||||
id: priority
|
||||
validations:
|
||||
required: true
|
||||
attributes:
|
||||
label: 优先级
|
||||
description: 请根据问题的严重程度选择优先级
|
||||
options:
|
||||
- 低(慢慢来)
|
||||
- 中(尽快解决)
|
||||
- 高(需立即解决)
|
||||
|
||||
- type: textarea
|
||||
id: additional-info
|
||||
attributes:
|
||||
label: 其他信息
|
||||
placeholder: 还有什么需要补充的信息吗?
|
||||
106
node_modules/hexo-theme-redefine/.github/ISSUE_TEMPLATE/bug-english.yml
generated
vendored
Normal file
106
node_modules/hexo-theme-redefine/.github/ISSUE_TEMPLATE/bug-english.yml
generated
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
name: Bug Report
|
||||
description: Found a bug? Let us help you fix it!
|
||||
title: "[BUG] "
|
||||
labels: ["bug"]
|
||||
assignees: ["EvanNotFound"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thanks for taking the time to report a bug! Fill out the details below to help us solve the issue quickly.
|
||||
|
||||
- type: checkboxes
|
||||
id: pre-check
|
||||
attributes:
|
||||
label: Quick Checklist
|
||||
description: "Before submitting, please make sure you've done the following:"
|
||||
options:
|
||||
- label: "I've tried running `hexo clean` but the issue is still there"
|
||||
required: true
|
||||
- label: "[I'm using the latest version of the theme](https://redefine-docs.ohevan.com/getting-started#update)"
|
||||
required: true
|
||||
- label: "[I've updated my theme configuration after updating](https://redefine-docs.ohevan.com/getting-started#migrate-configuration)"
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: bug-description
|
||||
attributes:
|
||||
label: "What's the issue?"
|
||||
description: "Tell us what's happening. Please include your relevant config settings from `_config.yml` and `_config.redefine.yml` (remember to remove any sensitive info)."
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: reproduce-steps
|
||||
attributes:
|
||||
label: "How can we reproduce this?"
|
||||
placeholder: "Walk us through the steps to see this bug in action"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: expected-behavior
|
||||
attributes:
|
||||
label: "What should have happened?"
|
||||
placeholder: "Tell us what you expected to see"
|
||||
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: "Screenshots (if any)"
|
||||
description: "Screenshots can help illustrate the problem."
|
||||
|
||||
- type: textarea
|
||||
id: logs
|
||||
attributes:
|
||||
label: "Related Logs"
|
||||
description: "Please copy and paste any relevant log output. This will be automatically formatted as code, so no backticks are needed."
|
||||
render: shell
|
||||
|
||||
- type: dropdown
|
||||
id: pc-browser
|
||||
attributes:
|
||||
label: "What browser(s) are you using?"
|
||||
multiple: true
|
||||
options:
|
||||
- Chrome
|
||||
- Firefox
|
||||
- Safari
|
||||
- Edge
|
||||
- Other
|
||||
|
||||
- type: dropdown
|
||||
id: pc-os
|
||||
attributes:
|
||||
label: "What operating system are you on?"
|
||||
options:
|
||||
- Windows
|
||||
- macOS
|
||||
- Linux
|
||||
- iOS
|
||||
- Android
|
||||
- Other
|
||||
|
||||
- type: input
|
||||
id: pc-version
|
||||
attributes:
|
||||
label: "Browser Version"
|
||||
placeholder: "e.g., Chrome 108.0.5359.124"
|
||||
|
||||
- type: dropdown
|
||||
id: priority
|
||||
validations:
|
||||
required: true
|
||||
attributes:
|
||||
label: "Priority"
|
||||
description: "Please select the priority based on the severity of the issue."
|
||||
options:
|
||||
- Low
|
||||
- Medium
|
||||
- High
|
||||
|
||||
- type: textarea
|
||||
id: additional-info
|
||||
attributes:
|
||||
label: "Anything else we should know?"
|
||||
placeholder: "Add any other helpful context about the problem here"
|
||||
55
node_modules/hexo-theme-redefine/.github/ISSUE_TEMPLATE/enhancement-chinese.yml
generated
vendored
Normal file
55
node_modules/hexo-theme-redefine/.github/ISSUE_TEMPLATE/enhancement-chinese.yml
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
name: 功能建议 [中文版本]
|
||||
description: 帮助我们改进 Redefine 主题
|
||||
title: "[功能建议]:"
|
||||
labels: ["enhancement"]
|
||||
assignees: ["EvanNotFound"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
感谢您提出功能建议!请填写以下信息,以便我们更好地理解您的想法。
|
||||
|
||||
- type: textarea
|
||||
id: feature-description
|
||||
attributes:
|
||||
label: "功能描述"
|
||||
description: "请详细描述您希望的功能"
|
||||
placeholder: |
|
||||
1. 这个功能是什么?
|
||||
2. 这个功能解决了什么问题?
|
||||
3. 您期望的使用场景是什么?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: implementation
|
||||
attributes:
|
||||
label: "实现建议"
|
||||
description: "如果您对如何实现此功能有想法,请在此分享"
|
||||
placeholder: "您认为这个功能应该如何实现?可以参考其他类似项目的实现方式。"
|
||||
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: "设计参考"
|
||||
description: "如果有类似功能的截图或设计稿,请在此分享"
|
||||
placeholder: "可以是草图、截图或其他参考资料"
|
||||
|
||||
- type: dropdown
|
||||
id: priority
|
||||
attributes:
|
||||
label: "优先级"
|
||||
description: "您认为此功能的重要程度如何?"
|
||||
options:
|
||||
- 低(锦上添花)
|
||||
- 中(较为重要)
|
||||
- 高(急需解决)
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: additional-info
|
||||
attributes:
|
||||
label: "补充信息"
|
||||
description: "还有什么需要补充的信息吗?"
|
||||
placeholder: "例如:使用场景示例、潜在影响等"
|
||||
55
node_modules/hexo-theme-redefine/.github/ISSUE_TEMPLATE/enhancement-english.yml
generated
vendored
Normal file
55
node_modules/hexo-theme-redefine/.github/ISSUE_TEMPLATE/enhancement-english.yml
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
name: Feature Request
|
||||
description: Suggestions to enhance the Redefine theme
|
||||
title: "[Feature Request]:"
|
||||
labels: ["enhancement"]
|
||||
assignees: ["EvanNotFound"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Thank you for suggesting a feature! Please fill out the information below to help us better understand your idea.
|
||||
|
||||
- type: textarea
|
||||
id: feature-description
|
||||
attributes:
|
||||
label: "Feature Description"
|
||||
description: "Please describe the feature you'd like to see in detail"
|
||||
placeholder: |
|
||||
1. What is this feature?
|
||||
2. What problem does it solve?
|
||||
3. What are your expected use cases?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: implementation
|
||||
attributes:
|
||||
label: "Implementation Suggestions"
|
||||
description: "If you have ideas about how to implement this feature, please share them here"
|
||||
placeholder: "How do you think this feature should be implemented? You can reference similar implementations from other projects."
|
||||
|
||||
- type: textarea
|
||||
id: screenshots
|
||||
attributes:
|
||||
label: "Design References"
|
||||
description: "Share any mockups, screenshots, or design references that help illustrate your idea"
|
||||
placeholder: "This can include sketches, screenshots, or other reference materials"
|
||||
|
||||
- type: dropdown
|
||||
id: priority
|
||||
attributes:
|
||||
label: "Priority"
|
||||
description: "How important do you think this feature is?"
|
||||
options:
|
||||
- Low (Nice to have)
|
||||
- Medium (Important)
|
||||
- High (Critical)
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
id: additional-info
|
||||
attributes:
|
||||
label: "Additional Context"
|
||||
description: "Any other information you'd like to share?"
|
||||
placeholder: "For example: usage scenarios, potential impact, etc."
|
||||
32
node_modules/hexo-theme-redefine/.github/workflows/aliyun-cdn-publish.yml
generated
vendored
Normal file
32
node_modules/hexo-theme-redefine/.github/workflows/aliyun-cdn-publish.yml
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Publish to Aliyun
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
aliyun-cdn-publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Setup Aliyun OSS
|
||||
uses: manyuanrong/setup-ossutil@master
|
||||
with:
|
||||
endpoint: ${{ secrets.ALI_ENDPOINT }}
|
||||
access-key-id: ${{ secrets.ALI_ACCESSKEYID }}
|
||||
access-key-secret: ${{ secrets.ALI_ACCESSKEYSECRET }}
|
||||
|
||||
- name: Upload to Aliyun OSS
|
||||
run: |
|
||||
VERSION=$(echo ${{ github.event.release.name }} | sed 's/v//')
|
||||
ossutil cp -r source/ oss://${{ secrets.ALI_BUCKET }}/projects/hexo-theme-redefine@$VERSION/source/
|
||||
50
node_modules/hexo-theme-redefine/.github/workflows/build-and-commit.yml
generated
vendored
Normal file
50
node_modules/hexo-theme-redefine/.github/workflows/build-and-commit.yml
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: Build JS and CSS
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
paths:
|
||||
- 'source/js/**'
|
||||
- 'source/css/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false # Prevent using GITHUB_TOKEN automatically
|
||||
fetch-depth: 0 # Fetch all history for accurate file diffs
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20.x' # Specify your Node.js version
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build Project
|
||||
run: npm run build
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "github-actions"
|
||||
git config user.email "github-actions@github.com"
|
||||
|
||||
- name: Commit and Push Changes
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
git add source/js/build source/css/build
|
||||
# Check if there are any changes
|
||||
if ! git diff --cached --quiet; then
|
||||
git commit -m "ci: build and update source/build/js and source/build/css [skip ci]"
|
||||
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:${GITHUB_REF#refs/heads/}
|
||||
else
|
||||
echo "No changes to commit"
|
||||
fi
|
||||
28
node_modules/hexo-theme-redefine/.github/workflows/npm-publish.yml
generated
vendored
Normal file
28
node_modules/hexo-theme-redefine/.github/workflows/npm-publish.yml
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
||||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
||||
|
||||
name: Publish to NPM
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
npm-publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20.x'
|
||||
registry-url: https://registry.npmjs.org/
|
||||
|
||||
- run: npm ci
|
||||
|
||||
- run: npm run build
|
||||
|
||||
- run: npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
127
node_modules/hexo-theme-redefine/.github/workflows/preview-deployment.yml
generated
vendored
Normal file
127
node_modules/hexo-theme-redefine/.github/workflows/preview-deployment.yml
generated
vendored
Normal file
@@ -0,0 +1,127 @@
|
||||
name: Vercel Preview Deployment
|
||||
|
||||
env:
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
pull_request_target:
|
||||
branches:
|
||||
- dev
|
||||
- main
|
||||
|
||||
jobs:
|
||||
preview-deployment:
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: ${{ github.event_name == 'pull_request_target' && 'PR Preview' || 'Preview' }}
|
||||
url: ${{ steps.deploy-to-vercel.outputs.preview-url }}
|
||||
steps:
|
||||
- name: Determine checkout details
|
||||
id: checkout-details
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const isPr = context.eventName === 'pull_request_target'
|
||||
const ref = isPr ? context.payload.pull_request.head.ref : context.ref
|
||||
const repo = isPr ? context.payload.pull_request.head.repo.full_name : context.repo.full_name
|
||||
core.setOutput('ref', ref)
|
||||
core.setOutput('repo', repo)
|
||||
|
||||
- name: Checkout theme repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'theme'
|
||||
ref: ${{ steps.checkout-details.outputs.ref }}
|
||||
repository: ${{ steps.checkout-details.outputs.repo }}
|
||||
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20.x' # Specify your required Node.js version
|
||||
|
||||
- name: Clone Hexo site repository
|
||||
run: git clone https://github.com/EvanNotFound/redefine-demo.git hexo-site
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.x' # Ensure compatibility with Python 3.x
|
||||
|
||||
- name: Install PyYAML
|
||||
run: pip install pyyaml
|
||||
|
||||
- name: Enable Developer Mode in Config
|
||||
run: |
|
||||
echo "import yaml
|
||||
import logging
|
||||
|
||||
# Set up logging
|
||||
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
||||
|
||||
try:
|
||||
# Load YAML file
|
||||
with open('hexo-site/_config.redefine.yml', 'r') as file:
|
||||
config = yaml.safe_load(file)
|
||||
logging.info('YAML file loaded successfully.')
|
||||
|
||||
# Modify the developer mode and CDN settings
|
||||
config['developer']['enable'] = True
|
||||
logging.info('Developer mode set to True.')
|
||||
|
||||
config['cdn']['enable'] = False
|
||||
logging.info('CDN set to False.')
|
||||
|
||||
# Save the modified YAML file
|
||||
with open('hexo-site/_config.redefine.yml', 'w') as file:
|
||||
yaml.safe_dump(config, file, default_flow_style=False, sort_keys=False)
|
||||
logging.info('YAML file saved with new settings.')
|
||||
|
||||
except Exception as e:
|
||||
logging.error('An error occurred: {}'.format(e))
|
||||
" > update_yaml.py
|
||||
python update_yaml.py
|
||||
|
||||
- name: Move theme into Hexo site
|
||||
run: |
|
||||
mv theme hexo-site/themes/redefine
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd hexo-site
|
||||
npm install
|
||||
|
||||
- name: Build Hexo
|
||||
run: |
|
||||
cd hexo-site
|
||||
npm install
|
||||
npm uninstall hexo-theme-redefine
|
||||
npm run build
|
||||
|
||||
- name: Change directory to hexo-site
|
||||
run: echo "HEXO_SITE_DIR=${{ github.workspace }}/hexo-site" >> $GITHUB_ENV
|
||||
|
||||
- name: Install Vercel CLI
|
||||
run: npm install -g vercel@22.0.1
|
||||
|
||||
- name: Deploy to Vercel Action
|
||||
id: deploy-to-vercel
|
||||
uses: EvanNotFound/vercel-deployment-for-github-actions@v1.2.0
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
WORKING_DIRECTORY: ${{ env.HEXO_SITE_DIR }}
|
||||
VERCEL_SCOPE: ${{ secrets.VERCEL_SCOPE }}
|
||||
PRODUCTION: false
|
||||
DEPLOY_PR_FROM_FORK: true
|
||||
ALIAS_DOMAINS: |
|
||||
redefine-preview.vercel.app
|
||||
redefine-preview-git-{SHA}.vercel.app
|
||||
PR_PREVIEW_DOMAIN: "redefine-preview-pr-{PR}.vercel.app"
|
||||
62
node_modules/hexo-theme-redefine/.github/workflows/production-deployment.yml
generated
vendored
Normal file
62
node_modules/hexo-theme-redefine/.github/workflows/production-deployment.yml
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
name: Vercel Production Deployment
|
||||
env:
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
production-deployment:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout theme repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: 'theme' # Checkout the theme repository into a directory named 'theme'
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20.x' # Specify your required Node.js version
|
||||
|
||||
- name: Clone Hexo site repository
|
||||
run: git clone https://github.com/EvanNotFound/redefine-demo.git hexo-site
|
||||
|
||||
- name: Move theme into Hexo site
|
||||
run: |
|
||||
mv theme hexo-site/themes/redefine
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
cd hexo-site
|
||||
npm install
|
||||
|
||||
- name: Build Hexo
|
||||
run: |
|
||||
cd hexo-site
|
||||
npm install
|
||||
npm uninstall hexo-theme-redefine
|
||||
npm run build
|
||||
|
||||
- name: Change directory to hexo-site
|
||||
run: echo "HEXO_SITE_DIR=${{ github.workspace }}/hexo-site" >> $GITHUB_ENV
|
||||
|
||||
- name: Install Vercel CLI
|
||||
run: npm install -g vercel@22.0.1
|
||||
|
||||
- name: Deploy to Vercel Action
|
||||
uses: EvanNotFound/vercel-deployment-for-github-actions@v1.1.0
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
|
||||
WORKING_DIRECTORY: ${{ env.HEXO_SITE_DIR }}
|
||||
VERCEL_SCOPE: ${{ secrets.VERCEL_SCOPE }}
|
||||
PRODUCTION: true
|
||||
DEPLOY_PR_FROM_FORK: true
|
||||
PR_PREVIEW_DOMAIN: "redefine-preview-pr-{PR}.vercel.app"
|
||||
20
node_modules/hexo-theme-redefine/.github/workflows/stale-issues.yml
generated
vendored
Normal file
20
node_modules/hexo-theme-redefine/.github/workflows/stale-issues.yml
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
name: Close inactive issues
|
||||
on:
|
||||
schedule:
|
||||
- cron: "30 1 * * *"
|
||||
jobs:
|
||||
close-issues:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
days-before-issue-stale: 30
|
||||
days-before-issue-close: 14
|
||||
stale-issue-label: "stale"
|
||||
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
|
||||
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
|
||||
only-issue-labels: "question"
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user