fix:修复CI

This commit is contained in:
“dongming”
2025-12-16 00:33:11 +08:00
parent 1f4aa19852
commit 1910470d37

View File

@@ -23,6 +23,7 @@ jobs:
version: 10.23.0 version: 10.23.0
- name: Parse tag to env - name: Parse tag to env
shell: bash
run: | run: |
# 获取 tag 名称(Gitea Actions 使用 GITHUB_REF_NAME) # 获取 tag 名称(Gitea Actions 使用 GITHUB_REF_NAME)
TAG_NAME="${GITHUB_REF_NAME}" TAG_NAME="${GITHUB_REF_NAME}"
@@ -67,6 +68,7 @@ jobs:
run: pnpm run build run: pnpm run build
- name: Deploy to Cloudflare Pages - name: Deploy to Cloudflare Pages
shell: bash
env: env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
@@ -104,6 +106,7 @@ jobs:
- name: Notify Deploy Service (success) - name: Notify Deploy Service (success)
if: success() if: success()
shell: bash
env: env:
DEPLOY_SERVICE_CALLBACK_URL: ${{ secrets.DEPLOY_SERVICE_CALLBACK_URL }} DEPLOY_SERVICE_CALLBACK_URL: ${{ secrets.DEPLOY_SERVICE_CALLBACK_URL }}
DEPLOY_SERVICE_TOKEN: ${{ secrets.DEPLOY_SERVICE_TOKEN }} DEPLOY_SERVICE_TOKEN: ${{ secrets.DEPLOY_SERVICE_TOKEN }}
@@ -127,6 +130,7 @@ jobs:
- name: Notify Deploy Service (failure) - name: Notify Deploy Service (failure)
if: failure() if: failure()
shell: bash
env: env:
DEPLOY_SERVICE_CALLBACK_URL: ${{ secrets.DEPLOY_SERVICE_CALLBACK_URL }} DEPLOY_SERVICE_CALLBACK_URL: ${{ secrets.DEPLOY_SERVICE_CALLBACK_URL }}
DEPLOY_SERVICE_TOKEN: ${{ secrets.DEPLOY_SERVICE_TOKEN }} DEPLOY_SERVICE_TOKEN: ${{ secrets.DEPLOY_SERVICE_TOKEN }}