From a592713623acc348ca0986d0f8c162548d7782c3 Mon Sep 17 00:00:00 2001 From: coolxitech Date: Mon, 15 Dec 2025 21:52:32 +0800 Subject: [PATCH] =?UTF-8?q?chore(github-pages):=20=E9=85=8D=E7=BD=AE=20Git?= =?UTF-8?q?Hub=20Pages=20=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 environment 字段以指定部署环境 - 设置页面 URL 输出变量以便后续使用 - 确保工作流能够正确识别和部署到 GitHub Pages --- .github/workflows/github-pages.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index b66721e..9f823a9 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -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