Create rebuild.yml#30
Conversation
Rebuilds GitHub Pages using Pages API, in order to force update "copyright" date in the footer, as apparently it change at the build.
|
Poco de Hugo conozco, pero mepa que vos la tenes atada @chanix95 😉 |
chanix95
left a comment
There was a problem hiding this comment.
Que hacés @gorositopablo? Perdón la demora en responder.
La verdad no tengo mucha idea, nunca interactué con la API de Pages. Intenté pegarle a /repos/${{ github.repository }}/pages/builds a ver que onda y puedo traerme los builds del sitio pero cuando intento hacer el POST para un trigger de un build obtengo un Not Found como respuesta. ref
{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest/pages#request-a-github-pages-build"
}
Estimo que para poder administrar los builds desde la API hay que usar otro tipo publishing source. Hoy estamos usando "Deploy from a branch" desde la branch gh-pages, con lo que entiendo que GitHub Pages "no sabe" como buildeamos nuestra app como para triggerear un build desde la API de Pages, simplemete agarra el contenido estático desde la branch configurada.
Creo que para que la pipeline que creaste funcione, habría que migrar el publishing source a "Github Actions" y adaptar el workflow github pages que tenemos hoy, cosa de que sea ese Build Workflow que utilizaría Pages como publishing source. ref.
Igual de nuevo, no tengo mucha idea. Si querés, mergealo y probá de trigerearlo a ver que onda. Total, no va a romper nada.
Te dejo el approve :)
Rebuilds GitHub Pages using Pages API, in order to force update "copyright" date in the footer, as apparently it change at the build.
Will run in a new year without the need to commit any real changes or new post.