Skip to content

Create rebuild.yml#30

Open
gorositopablo wants to merge 1 commit into
mainfrom
gorositopablo-patch-1
Open

Create rebuild.yml#30
gorositopablo wants to merge 1 commit into
mainfrom
gorositopablo-patch-1

Conversation

@gorositopablo
Copy link
Copy Markdown
Collaborator

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.

Rebuilds GitHub Pages using Pages API, in order to force update "copyright" date in the footer, as apparently it change at the build.
@gorositopablo
Copy link
Copy Markdown
Collaborator Author

Poco de Hugo conozco, pero mepa que vos la tenes atada @chanix95 😉
Esta bien esto? O talvez hay otra manera

Copy link
Copy Markdown
Collaborator

@chanix95 chanix95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants