Publish from b0b6aade
Browse files
README.md
CHANGED
|
@@ -3,19 +3,19 @@ license: mit
|
|
| 3 |
tags:
|
| 4 |
- demo
|
| 5 |
- trusted-publishers
|
| 6 |
-
-
|
| 7 |
---
|
| 8 |
|
| 9 |
-
# published-from-
|
| 10 |
|
| 11 |
-
This repo is published automatically from [`coyotte508/publish-to-hf`](https://
|
| 12 |
|
| 13 |
-
Every push to `main` on the
|
| 14 |
|
| 15 |
-
1. Mints a short-lived
|
| 16 |
-
2. Exchanges it at `https://huggingface.co/oauth/token` for a short-lived Hub token scoped to this repo.
|
| 17 |
-
3. Uploads the contents of [`model/`](https://
|
| 18 |
|
| 19 |
See the [Trusted Publishers documentation](https://huggingface.co/docs/hub/trusted-publishers) for the full walkthrough.
|
| 20 |
|
| 21 |
-
<!-- bump
|
|
|
|
| 3 |
tags:
|
| 4 |
- demo
|
| 5 |
- trusted-publishers
|
| 6 |
+
- gitlab-ci
|
| 7 |
---
|
| 8 |
|
| 9 |
+
# published-from-gitlab
|
| 10 |
|
| 11 |
+
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.
|
| 12 |
|
| 13 |
+
Every push to `main` on the GitLab repo:
|
| 14 |
|
| 15 |
+
1. Mints a short-lived GitLab OIDC ID token via the `id_tokens:` keyword (audience: `https://huggingface.co`).
|
| 16 |
+
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).
|
| 17 |
+
3. Uploads the contents of [`model/`](https://gitlab.com/coyotte508/publish-to-hf/-/tree/main/model) here.
|
| 18 |
|
| 19 |
See the [Trusted Publishers documentation](https://huggingface.co/docs/hub/trusted-publishers) for the full walkthrough.
|
| 20 |
|
| 21 |
+
<!-- bump 1 -->
|