chore(github-pages): 配置 GitHub Pages 环境变量

- 添加 environment 字段以指定部署环境
- 设置页面 URL 输出变量以便后续使用
- 确保工作流能够正确识别和部署到 GitHub Pages
This commit is contained in:
coolxitech
2025-12-15 21:52:32 +08:00
parent ec6b9cee07
commit a592713623

View File

@@ -12,6 +12,9 @@ permissions:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: 检出代码
uses: actions/checkout@v6