GitHub workflow to create a release throws an error in the build process

I’m trying to create a GitHub workflow to build my skeleton for a release. I’ve copied the GitHub workflow file from another official Grav skeleton and tried using it, but only thing I got was this error in the action workflow:

Run svenstaro/upload-release-action@v2
  with:
    repo_token: ***
    tag: 2.0.0
    file: dist/*.zip
    overwrite: true
    file_glob: true
  env:
    SKELETON_VERSION: 2.0.0
  
Error: Resource not accessible by integration - https://docs.github.com/rest/releases/releases#create-a-release

I’ve already searched the internet, but it doesn’t seem to have any docs about this. Neither for how to set up a workflow to publish a skeleton in the releases.

Here are some useful links of the repo:

I also set up this workflow quite a while ago, perhaps referring to another working example might help? grav-skeleton-course-hub/.github/workflows/build-skeleton.yaml at master · hibbitts-design/grav-skeleton-course-hub · GitHub

And here are some original docs, written by the workflow creator Djamil Legato, that might help too: Skeleton Build Automation | Grav CMS

I’ve checked the blog post and did exactly what he did, but somehow I’m getting this message still. I’m using the same build-skelton.yaml and tested it for automatic & manual release.