--- license: mit tags: - demo - trusted-publishers - gitlab-ci --- # published-from-gitlab This repo is published automatically from [`coyotte508/publish-to-hf`](https://gitlab.com/coyotte508/publish-to-hf) on GitLab, using Hugging Face [Trusted Publishers](https://huggingface.co/docs/hub/trusted-publishers) — no `HF_TOKEN` secret stored anywhere. Every push to `main` on the GitLab repo: 1. Mints a short-lived GitLab OIDC ID token via the `id_tokens:` keyword (audience: `https://huggingface.co`). 2. Exchanges it at `https://huggingface.co/oauth/token` for a short-lived Hub token scoped to this repo (done automatically by the `hf` CLI). 3. Uploads the contents of [`model/`](https://gitlab.com/coyotte508/publish-to-hf/-/tree/main/model) here. See the [Trusted Publishers documentation](https://huggingface.co/docs/hub/trusted-publishers) for the full walkthrough.