@@ -23,13 +23,13 @@ jobs:
2323 env :
2424 GITHUB_CONTEXT : ${{ toJson(github) }}
2525 run : echo "$GITHUB_CONTEXT"
26- - uses : actions/checkout@v4
26+ - uses : actions/checkout@v5
2727 - name : Set up Python
28- uses : actions/setup-python@v5
28+ uses : actions/setup-python@v6
2929 with :
3030 python-version : " 3.11"
3131 - name : Setup uv
32- uses : astral-sh/setup-uv@v5
32+ uses : astral-sh/setup-uv@v6
3333 with :
3434 version : " 0.4.15"
3535 enable-cache : true
@@ -44,12 +44,12 @@ jobs:
4444 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4545 COMMIT_SHA : ${{ github.event.workflow_run.head_sha }}
4646 RUN_ID : ${{ github.run_id }}
47-
47+ STATE : " pending "
4848 - name : Clean site
4949 run : |
5050 rm -rf ./site
5151 mkdir ./site
52- - uses : actions/download-artifact@v4
52+ - uses : actions/download-artifact@v5
5353 with :
5454 path : ./site/
5555 pattern : docs-site
@@ -68,11 +68,19 @@ jobs:
6868 apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
6969 accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
7070 command : pages deploy ./site --project-name=${{ env.PROJECT_NAME }} --branch=${{ env.BRANCH }}
71+ - name : Deploy Docs Status Error
72+ if : failure()
73+ run : python ./scripts/deploy_docs_status.py
74+ env :
75+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76+ COMMIT_SHA : ${{ github.event.workflow_run.head_sha }}
77+ RUN_ID : ${{ github.run_id }}
78+ STATE : " error"
7179 - name : Comment Deploy
7280 run : python ./scripts/deploy_docs_status.py
7381 env :
7482 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7583 DEPLOY_URL : ${{ steps.deploy.outputs.deployment-url }}
7684 COMMIT_SHA : ${{ github.event.workflow_run.head_sha }}
7785 RUN_ID : ${{ github.run_id }}
78- IS_DONE : " true "
86+ STATE : " success "
0 commit comments