Github "deploy" action fails to deploy my updates to my GitHub Pages blog #168404
Replies: 4 comments
-
O deploy falha porque aparentemente GitHub Pages não está habilitado no repositório para o qual você está tentando fazer o deploy. Habilite e configure o GitHub Pages, depois rode o workflow novamente |
Beta Was this translation helpful? Give feedback.
-
Hi @MarcossVini thanks for the quick reply. However GitHub Pages are enabled, here's the screenshot: ![]() I verified that the url is also working with two of my previous blog posts. TIA |
Beta Was this translation helpful? Give feedback.
-
Então pode ser que job de deploy está mal configurado: ele não inclui as permissões necessárias (contents: read, pages: write, id-token: write), não aponta para o ambiente “github-pages” e ainda usa uma versão antiga da Action sem passar o token de autenticação (pelo que se nota nas imagens). Por isso o GitHub ignora a solicitação e responde com 404. Basta corrigir essas três coisas
|
Beta Was this translation helpful? Give feedback.
-
Okay I reverified and added the permissions you mentioned. I then added the environment: environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }} Finally updated the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Question
What GitHub Actions topic or product is this about?
Workflow Deployment
Discussion Details
I have a Github Pages blog setup with Hugo's LoveIt theme. I can push my updates to the site and get the build process to successfully complete. However, when it comes to deployment, I run into this issue:
For the life of me I cannot understand what I am doing wrong during deployment. Here's the deploy config I am using:
And here's the build config:
Any help would be appreciated. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions