diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index d18dcc5..b8d5360 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -16,11 +16,20 @@ env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} +# 设置 GITHUB_TOKEN 的权限,以允许部署到 GitHub Pages +permissions: + contents: read + pages: write + id-token: write + jobs: ## 部署到Github-Pages deploy-github: name: "部署到Github-Pages" runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} if: github.repository == '142vip/408CSFamily' steps: