Can I set up a Shields.io to display GitHub pages deployment status? #8817
-
|
there is a built-in option in GitHub for this but it doesn't have the formatting I would like, I'm trying to create a shield.io badge for it but I'm not sure how to here. Does anyone know what I would need to add to this to make it work with my website's deployment? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
https://github.com/actions/dylanravel.com is not a repo - you'd need to use the repo your GH pages site is deployed from and then the filename of the workflow that deploys it. For example, in our repo https://github.com/badges/shields there is a GH pages site ( https://contributing.shields.io/ ) deployed by the workflow file https://github.com/badges/shields/blob/master/.github/workflows/deploy-docs.yml so the corresponding badge for that workflow is https://img.shields.io/github/actions/workflow/status/badges/shields/deploy-docs.yml |
Beta Was this translation helpful? Give feedback.

https://github.com/actions/dylanravel.com is not a repo - you'd need to use the repo your GH pages site is deployed from and then the filename of the workflow that deploys it.
For example, in our repo https://github.com/badges/shields there is a GH pages site ( https://contributing.shields.io/ ) deployed by the workflow file https://github.com/badges/shields/blob/master/.github/workflows/deploy-docs.yml
so the corresponding badge for that workflow is https://img.shields.io/github/actions/workflow/status/badges/shields/deploy-docs.yml