Gitnet Forge domains
A Gitnet Forge domain is associated with your Forge account rather than a domain name that you manage yourself.
For example, a website may be addressed using an account hostname such as:
https://username.gitnet.page/A repository-specific website may use a path below that hostname:
https://username.gitnet.page/my-projectAuthorize publishing with an access token
Publishing a local directory requires an access token with push permissions for the corresponding repository.
On Forgejo, create a token as follows:
- Open Settings → Applications → Access tokens.
- Expand Select permissions.
- Select Read under user and Read and write under repository.
- Give the token a descriptive name, such as
git-pages publishing. - Generate the token and copy it securely.
Deploy using the token:
$ git-pages-cli https://username.gitnet.fr \
--token "$GIT_PAGES_TOKEN" \
--upload-dir site-contents \
--server gitnet.page
If your site is associated with a repository path, include the path required by your instance.
Warning
Keep the access token secret. Anyone who obtains it may be able to modify data in your repositories.
Forgejo Actions
If you publish from a Forgejo Actions workflow, use the dedicated git-pages Action and read its documentation rather than implementing the workflow directly with the CLI.