API to upload files from GithHub

I would like to implement CD in “GitHub Actions” to upload files from GitHub repo to Glitch.
Does Glitch expose APIs to upload file(s) to a project?

1 Like

you can push to them via git, and there’s some config you can run to have the project updates its working directory when it receives a push. there’s an import/export menu where you can get the git remote URL to use

the URL has an authentication token, so you’ll have to save it as a secret in your GitHub actions setup

3 Likes

@wh0 Thanks for your answer, sounds good.
Question regarding a token (JWT?) - how can find/generate a token for a project in Glitch?

the token is already inside of the git url :slight_smile:

1 Like

Ah, this is fine.
does the token have an expiration time (renewed by the platform)?

This topic was automatically closed after 180 days. New replies are no longer allowed.