-
Notifications
You must be signed in to change notification settings - Fork 1
Description
https://github.com/typst-community/dev-builds/blob/main/.github/workflows/gh-pages.yaml triggered by publishing release deploys the wrong artifact.
At that time, in https://github.com/typst-community/dev-builds/actions/runs/19385417200/job/55472750894, the github-pages artifact includes https://github.com/typst-community/dev-builds/releases/tag/typst-main.2025-11-14.0da0165, but the deployed website does not.
$ gh run download --name github-pages
$ 7z x artifact.tar
$ jq .artifacts.typst[].name catalog.json
"typst-main.2025-11-14.0da0165"
"typst-main.2025-09-19.586b049"
$ curl -o deployed-catalog.json https://typst-community.github.io/dev-builds/catalog.json
$ jq .artifacts.typst[].name deployed-catalog.json
"typst-main.2025-09-19.586b049"It has happened before and I thought it was caused by API delay and fixed it in 7d14b2f. Now it turns out that I was wrong.
Rerunning the job does not fix it, but dispatching a new job against the same commit on main fix it. I can't explain why.
Caused by actions/deploy-pages#383.
Debug
Look at the following three runs. The first two were triggered by pushing to main, and the last one was triggered by publishing a new release.
Their pages_build_version should be all different, but the last two are the same.
That's expected. pages_build_version is the commit SHA.
Details
https://github.com/typst-community/dev-builds/actions/runs/18847662680/job/53775911076
Run actions/deploy-pages@v4
Fetching artifact metadata for "github-pages" in this workflow run
Found 1 artifact(s)
Creating Pages deployment with payload:
{
"artifact_id": 4383745070,
"pages_build_version": "cab8dfea826a96782096aa81a168ad2796ec7802",
"oidc_token": "***"
}
Created deployment for cab8dfea826a96782096aa81a168ad2796ec7802, ID: cab8dfea826a96782096aa81a168ad2796ec7802
Getting Pages deployment status...
Reported success!
https://github.com/typst-community/dev-builds/actions/runs/18862412864/job/53823246717
Run actions/deploy-pages@v4
Fetching artifact metadata for "github-pages" in this workflow run
Found 1 artifact(s)
Creating Pages deployment with payload:
{
"artifact_id": 4389108473,
"pages_build_version": "7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f",
"oidc_token": "***"
}
Created deployment for 7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f, ID: 7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f
Getting Pages deployment status...
Reported success!
https://github.com/typst-community/dev-builds/actions/runs/19385417200/job/55471506609
Run actions/deploy-pages@v4
Fetching artifact metadata for "github-pages" in this workflow run
Found 1 artifact(s)
Creating Pages deployment with payload:
{
"artifact_id": 4575825543,
"pages_build_version": "7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f",
"oidc_token": "***"
}
Created deployment for 7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f, ID: 7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f
Getting Pages deployment status...
Reported success!
Rerun in debug mode
##[debug]Evaluating condition for step: 'Run actions/deploy-pages@v4'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run actions/deploy-pages@v4
##[debug]Loading inputs
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run actions/deploy-pages@v4
##[debug]all variables are set
##[debug]all variables are set
##[debug]ID token url is https://run-actions-1-azure-eastus.actions.githubusercontent.com/131//idtoken/c6aa25fc-6ea1-4c8a-b8bc-b37c3ef8dac4/8dbb4ace-67a4-50b1-bb1f-3c044fe31c18?api-version=2.0
::add-mask::***
##[debug]Actor: YDX-2147483647
##[debug]Action ID: deployment
##[debug]Actions Workflow Run ID: 19385417200
Fetching artifact metadata for "github-pages" in this workflow run
##[debug]Workflow Run Backend ID: c6aa25fc-6ea1-4c8a-b8bc-b37c3ef8dac4
##[debug]Workflow Job Run Backend ID: 8dbb4ace-67a4-50b1-bb1f-3c044fe31c18
##[debug][Request] ListArtifacts https://results-receiver.actions.githubusercontent.com/twirp/github.actions.results.api.v1.ArtifactService/ListArtifacts
##[debug][Response] - 200
##[debug]Headers: {
##[debug] "content-length": "333",
##[debug] "content-type": "application/json",
##[debug] "date": "Sat, 15 Nov 2025 06:42:48 GMT",
##[debug] "x-github-backend": "Kubernetes",
##[debug] "x-github-request-id": "1402:308CD4:40D0C5:5F4AA0:691820E8"
##[debug]}
##[debug]Body: {
##[debug] "artifacts": [
##[debug] {
##[debug] "workflow_run_backend_id": "0ab55f30-dfaa-4a79-91a4-5c5e07239eba",
##[debug] "workflow_job_run_backend_id": "408fe207-ea3a-5821-a08a-450e65b748fd",
##[debug] "database_id": "4575825543",
##[debug] "name": "github-pages",
##[debug] "size": "3160",
##[debug] "created_at": "2025-11-15T06:00:13Z",
##[debug] "digest": "sha256:d53e4f18bc9a7e8b0c1d5dd6ba9f81ac546136d6f89531100a0f80a826c46b87"
##[debug] }
##[debug] ]
##[debug]}
Found 1 artifact(s)
##[debug]List artifact count: 1
##[debug]Artifact: {"name":"github-pages","id":4575825543,"size":3160,"createdAt":"2025-11-15T06:00:13.000Z"}
Creating Pages deployment with payload:
{
"artifact_id": 4575825543,
"pages_build_version": "7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f",
"oidc_token": "***"
}
Created deployment for 7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f, ID: 7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f
##[debug]{"id":"7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f","page_url":"https://typst-community.github.io/dev-builds/","status_url":"https://api.github.com/repos/typst-community/dev-builds/pages/deployment/status/7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f","preview_url":""}
Getting Pages deployment status...
Reported success!
##[debug]Node Action run completed with exit code 0
##[debug]Set output page_url = https://typst-community.github.io/dev-builds/
##[debug]Set output status = succeed
##[debug]Finishing: Run actions/deploy-pages@v4
5s
##[debug]Evaluating condition for step: 'Run actions/deploy-pages@v4'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Run actions/deploy-pages@v4
##[debug]Loading inputs
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run actions/deploy-pages@v4
##[debug]all variables are set
##[debug]all variables are set
##[debug]ID token url is https://run-actions-1-azure-eastus.actions.githubusercontent.com/131//idtoken/c6aa25fc-6ea1-4c8a-b8bc-b37c3ef8dac4/8dbb4ace-67a4-50b1-bb1f-3c044fe31c18?api-version=2.0
::add-mask::***
##[debug]Actor: YDX-2147483647
##[debug]Action ID: deployment
##[debug]Actions Workflow Run ID: 19385417200
Fetching artifact metadata for "github-pages" in this workflow run
##[debug]Workflow Run Backend ID: c6aa25fc-6ea1-4c8a-b8bc-b37c3ef8dac4
##[debug]Workflow Job Run Backend ID: 8dbb4ace-67a4-50b1-bb1f-3c044fe31c18
##[debug][Request] ListArtifacts https://results-receiver.actions.githubusercontent.com/twirp/github.actions.results.api.v1.ArtifactService/ListArtifacts
##[debug][Response] - 200
##[debug]Headers: {
##[debug] "content-length": "333",
##[debug] "content-type": "application/json",
##[debug] "date": "Sat, 15 Nov 2025 06:42:48 GMT",
##[debug] "x-github-backend": "Kubernetes",
##[debug] "x-github-request-id": "1402:308CD4:40D0C5:5F4AA0:691820E8"
##[debug]}
##[debug]Body: {
##[debug] "artifacts": [
##[debug] {
##[debug] "workflow_run_backend_id": "0ab55f30-dfaa-4a79-91a4-5c5e07239eba",
##[debug] "workflow_job_run_backend_id": "408fe207-ea3a-5821-a08a-450e65b748fd",
##[debug] "database_id": "4575825543",
##[debug] "name": "github-pages",
##[debug] "size": "3160",
##[debug] "created_at": "2025-11-15T06:00:13Z",
##[debug] "digest": "sha256:d53e4f18bc9a7e8b0c1d5dd6ba9f81ac546136d6f89531100a0f80a826c46b87"
##[debug] }
##[debug] ]
##[debug]}
Found 1 artifact(s)
##[debug]List artifact count: 1
##[debug]Artifact: {"name":"github-pages","id":4575825543,"size":3160,"createdAt":"2025-11-15T06:00:13.000Z"}
Creating Pages deployment with payload:
{
"artifact_id": 4575825543,
"pages_build_version": "7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f",
"oidc_token": "***"
}
Created deployment for 7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f, ID: 7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f
##[debug]{"id":"7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f","page_url":"https://typst-community.github.io/dev-builds/","status_url":"https://api.github.com/repos/typst-community/dev-builds/pages/deployment/status/7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f","preview_url":""}
Getting Pages deployment status...
Reported success!
##[debug]Node Action run completed with exit code 0
##[debug]Set output page_url = https://typst-community.github.io/dev-builds/
##[debug]Set output status = succeed
##[debug]Finishing: Run actions/deploy-pages@v4
##[debug] "name": "github-pages",
##[debug] "size": "3160",
##[debug] "created_at": "2025-11-15T06:00:13Z",
##[debug] "digest": "sha256:d53e4f18bc9a7e8b0c1d5dd6ba9f81ac546136d6f89531100a0f80a826c46b87"
##[debug] }
##[debug] ]
##[debug]}
Found 1 artifact(s)
##[debug]List artifact count: 1
##[debug]Artifact: {"name":"github-pages","id":4575825543,"size":3160,"createdAt":"2025-11-15T06:00:13.000Z"}
Creating Pages deployment with payload:
{
"artifact_id": 4575825543,
"pages_build_version": "7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f",
"oidc_token": "***"
}
Created deployment for 7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f, ID: 7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f
##[debug]{"id":"7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f","page_url":"https://typst-community.github.io/dev-builds/","status_url":"https://api.github.com/repos/typst-community/dev-builds/pages/deployment/status/7d14b2f45ed78db82f976e5cd2dec5c7ffac2f9f","preview_url":""}
Getting Pages deployment status...
Reported success!
##[debug]Node Action run completed with exit code 0
##[debug]Set output page_url = https://typst-community.github.io/dev-builds/
##[debug]Set output status = succeed
##[debug]Finishing: Run actions/deploy-pages@v4