jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
7.35k stars 2.54k forks source link

Fixed lack of permission issue in deploy.yml for Github pages #1545

Closed zibz0017 closed 3 weeks ago

zibz0017 commented 1 month ago

Fixed the following error I received when deploying through Github pages:

HttpError: Not Found
    at /home/runner/work/_actions/actions/deploy-pages/v4/node_modules/@octokit/request/dist-node/index.js:124:1
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at createPagesDeployment (/home/runner/work/_actions/actions/deploy-pages/v4/src/internal/api-client.js:125:1)
    at Deployment.create (/home/runner/work/_actions/actions/deploy-pages/v4/src/internal/deployment.js:74:1)
    at main (/home/runner/work/_actions/actions/deploy-pages/v4/src/index.js:30:1)
aarnphm commented 4 weeks ago

strange, if you create from the templates permission should be yours

saberzero1 commented 4 weeks ago

That same GitHub Actions run says that you didn't have GitHub Pages enabled

zibz0017 commented 3 weeks ago

Hi, how are you?

I believe I did have GitHub pages enabled. I didn't know why it said I didn't.

On Fri, Oct 25, 2024 at 8:59 AM Emile Bangma @.***> wrote:

That same GitHub Actions runs says that you didn't have GitHub Pages enabled https://github.com/zibz0017/QuartzVault/actions/runs/11470059553/job/31918531666#step:2:1

— Reply to this email directly, view it on GitHub https://github.com/jackyzha0/quartz/pull/1545#issuecomment-2437713009, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTEM4PCK45L35ROQKWYO6LZ5I6CTAVCNFSM6AAAAABQN7TQJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZXG4YTGMBQHE . You are receiving this because you authored the thread.Message ID: @.***>

saberzero1 commented 3 weeks ago

Perhaps it is related to the account that pushed the deploy.yml. It seeks to be a different account from the on you used to open this issue?

zibz0017 commented 3 weeks ago

Are you sure? They both look like they were done by my account zibz0017.

On Sun, Oct 27, 2024 at 3:06 AM Emile Bangma @.***> wrote:

Perhaps it is related to the account that pushed the deploy.yml. It seeks to be a different account from the on you used to open this issue?

— Reply to this email directly, view it on GitHub https://github.com/jackyzha0/quartz/pull/1545#issuecomment-2439882878, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTEM4OO5K3HZHJK257ITETZ5R7F3AVCNFSM6AAAAABQN7TQJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZHA4DEOBXHA . You are receiving this because you authored the thread.Message ID: @.***>

saberzero1 commented 3 weeks ago

Are you sure? They both look like they were done by my account zibz0017. … On Sun, Oct 27, 2024 at 3:06 AM Emile Bangma @.> wrote: Perhaps it is related to the account that pushed the deploy.yml. It seeks to be a different account from the on you used to open this issue? — Reply to this email directly, view it on GitHub <#1545 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASTEM4OO5K3HZHJK257ITETZ5R7F3AVCNFSM6AAAAABQN7TQJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZZHA4DEOBXHA . You are receiving this because you authored the thread.Message ID: @.>

https://github.com/zibz0017/QuartzVault/commit/d43537de1c2fee71ba4c39cbbc4baa0e235458ff

The account used to push this commit doesn't seem to be linked to your GitHub account. (or is marked as private email address, which is more likely as the name matches your account). I assume that is the problem. I assume you use your account's no-reply GitHub mail to commit without personal email?