Is it possible or no to use github private repository for web asset and serve via jsdelivr?

2.1k Views Asked by At

I used github-free account and already know how to access my web asset on github repo-public via jsdelivr, then i want make it private. when i set the repo to private it not work, the assets cannot be accessed "failed to fetch"

My idea is :

  • Create private repo for web assets.
  • create branch that containing: branch/css, branch/js, branch/webfonts. As an example.
  • Serve it to jsdelivr cdn for my web.

Is anyone know how to implement github private repo to jsdelivr for web assets?

1

There are 1 best solutions below

2
VonC On

If you cannot serve directly a private GitHub repository, you might have to setup a plugin like private-github-website

Given a github repository and a set of allowed email addresses, serves up the content of the repo to everyone who logs in with an allowed email address.

See its repository: TehShrike/private-github-website/