Skip to content

Commit 70f5fad

Browse files
fix: gh-pages.yml permissions
We had the error on `gh-pages` actions workflow. This might fix this. Source: https://github.com/marketplace/actions/github-pages-action#%EF%B8%8F-first-deployment-with-github_token > If the action fails to push the commit or tag with the following error: > ```shell > /usr/bin/git push origin gh-pages > remote: Write access to repository not granted. > fatal: unable to access 'https://github.com/username/repository.git/': The requested URL returned error: 403 > Error: Action failed with "The process '/usr/bin/git' failed with exit code 128" > ``` > Please add the `write` permission to the `permissions.contents` in a workflow/job. > ```yml > permissions: > contents: write > ```
1 parent 06578e4 commit 70f5fad

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214
steps:
1315
- uses: actions/checkout@v4
1416
with:

0 commit comments

Comments
 (0)