Skip to content

Commit 838dcba

Browse files
authored
With auth_token
1 parent b62f76f commit 838dcba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Note that this is an account-level token that has access to update **any** repo
1616

1717
### Building with `GITHUB_TOKEN`
1818

19-
This action supports building and deploying with a `GITHUB_TOKEN`. This token is automatically generated by Github Actions when a workflow runs so it is convenient.
19+
This action supports building and deploying with a `GITHUB_TOKEN` as default. This token is automatically generated by Github Actions when a workflow runs so it is convenient.
2020

2121
It is more **secure** than a personal token, since you never actually see the value of the `GITHUB_TOKEN` and also the `GITHUB_TOKEN` is scoped to only work for a **single** repo.
2222

@@ -57,8 +57,9 @@ jobs:
5757
uses: mhausenblas/mkdocs-deploy-gh-pages@master
5858
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
5959
env:
60-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6160
CUSTOM_DOMAIN: optionaldomain.com
6261
CONFIG_FILE: folder/mkdocs.yml
6362
EXTRA_PACKAGES: build-base
63+
with:
64+
auth_token: ${{ secret.PERSONAL_TOKEN }} # Optional
6465
```

0 commit comments

Comments
 (0)