Skip to content

Commit d563a21

Browse files
FineFindusDrodt
authored andcommitted
docs(deploy-gh-pages): add workflow permissions (getzola#2249)
1 parent 669b35f commit d563a21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/content/documentation/deployment/github-pages.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Let's start with the token. Remember, if you are publishing the site on the same
3535
For creating the token either click on [here](https://github.com/settings/tokens/new?scopes=public_repo) or go to Settings > Developer Settings > Personal access tokens. Under the *Select Scopes* section, give it *public_repo* permissions and click *Generate token*. Then copy the token, navigate to your repository and add in the Settings tab the *Secret* `TOKEN` and paste your token in it.
3636

3737
Next we need to create the *Github Action*. Here we can make use of the [zola-deploy-action](https://github.com/shalzz/zola-deploy-action). Go to the *Actions* tab of your repository, click on *set up a workflow yourself* to get a blank workflow file. Copy the following script into it and commit it afterwards; note that you may need to change the `github.ref` branch from `main` to `master` or similar, as the action will only run for the branch you choose.
38+
If you get a permissions denied error, you may need to change the workflow permissions to read and write in Settings > Actions > Workflow permissions.
3839

3940
```yaml
4041
# On every push this script is executed

0 commit comments

Comments
 (0)