system HF Staff commited on
Commit
059ecaa
·
verified ·
1 Parent(s): 0e5b837

Publish from b0b6aade

Browse files
Files changed (1) hide show
  1. README.md +8 -8
README.md CHANGED
@@ -3,19 +3,19 @@ license: mit
3
  tags:
4
  - demo
5
  - trusted-publishers
6
- - github-actions
7
  ---
8
 
9
- # published-from-github
10
 
11
- This repo is published automatically from [`coyotte508/publish-to-hf`](https://github.com/coyotte508/publish-to-hf) on GitHub, 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 GitHub repo:
14
 
15
- 1. Mints a short-lived GitHub OIDC ID token (audience: `https://huggingface.co`).
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://github.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 4 -->
 
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 -->