Skip to content

ci: deploy the website through deploy.alphatab.net with OIDC - #3049

Merged
Danielku15 merged 1 commit into
developfrom
ci/site-deploy-host
Nov 28, 2026
Merged

Danielku15 merged 1 commit into
developfrom
ci/site-deploy-host

Conversation

@Danielku15

Copy link
Copy Markdown
Member

Note

AI-authored disclosure (alphatab-ai-authored-v1)

Portions of this content were authored by an AI agent. The agent has read
AGENTS.md and the human submitter accepts responsibility for
compliance with the rules in that document.

Issues

No issue: this is a maintainer-directed infrastructure change. The website deploy target moves from the retired docs deploy service to the new site deploy host (CoderLine/alphaTabSiteDeployHost, private), which the maintainer asked for directly.

Proposed changes

The website deploy now authenticates with the deploy job's GitHub Actions OIDC token instead of the static DEPLOY_TOKEN secret, and uploads through deploy contract 1 at https://deploy.alphatab.net.

  • ~publish_website.yml
    • The deploy job requests the token (audience https://deploy.alphatab.net) and PUTs the zipped site to /sites/{alphatab.net|next.alphatab.net}/releases. The server accepts it only if repository, repository_owner_id, job_workflow_ref (this file) and ref match the site's rule: develop for next.alphatab.net, main/v* tags for alphatab.net.
    • Only the deploy job gets id-token: write, and it runs no npm code. Other jobs that can mint tokens (the npm/NuGet trusted-publishing jobs in ~publish_web.yml / ~publish_dotnet.yml) are rejected by the server because their job_workflow_ref differs.
    • download-artifact is pinned to the v8.0.2 commit.
    • The channel/ref check moves to the start of build, so a mismatch fails before the build rather than after it. The server enforces the ref independently.
    • The DEPLOY_TOKEN secret input and the unprotected website environment are removed.
  • publish.yml, release.yml: the website job grants id-token: write (permissions can only be reduced down a reusable-workflow chain) and no longer passes DEPLOY_TOKEN.

Rollout: next.alphatab.net switches when this lands on develop. alphatab.net keeps deploying through the old service until this change reaches main. DEPLOY_TOKEN and the website environment are deleted after both have switched.

Checklist

  • I consent that this change becomes part of alphaTab under its current or any future open source license
  • This PR is linked to an accepted issue (see above)
  • Changes are implemented
  • New tests were added: workflow-only change, verified by the first publish.yml run with only website=true after merge
  • I have read AGENTS.md if an AI helped draft any part of this PR

AI authorship disclosure

  • No AI agent authored any part of this PR (description, code, tests, or commit messages)
  • An AI agent contributed to this PR. The AI-authored disclosure block
    (alphatab-ai-authored-v1) is present at the top of this body, and I have
    personally reviewed every change and can explain each one

Further details

  • This is a breaking change
  • Docs / release notes updated in website/

@Danielku15
Danielku15 merged commit ef0021c into develop Nov 28, 2026
12 checks passed
@Danielku15
Danielku15 deleted the ci/site-deploy-host branch November 28, 2026 01:33
Danielku15 added a commit that referenced this pull request Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant