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