Troubleshooting GitHub Actions Deployment Errors with Tokens

Hello, I am attempting to deploy my website with GitHub Actions but I am running into some errors:

 ! [remote rejected] main -> main (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/github-pages.yml` without `workflow` scope)
error: failed to push some refs to ''

I have tried to re-generate the token over ten times, both classic and fine-grained, even applied all permissions, but the same errors keeps appearing after git push. I also tried to pull before pushing.

This is the section of the guide:

This is my path and environment:

I am not sure this is relevant, but there’s a weird behaviour with the .yml file not being denoted as yml but a text file: CleanShot 2023-05-26 at 16.43.16 · CleanShot Cloud

you’re sure you have the workflow item checked on the token? maybe you aren’t using the correct token?

unfortunately I don’t use GH actions, so not going to be able to help much.