Skip to content
Gitnet Forge domains

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-project

Authorize 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:

  1. Open Settings → Applications → Access tokens.
  2. Expand Select permissions.
  3. Select Read under user and Read and write under repository.
  4. Give the token a descriptive name, such as git-pages publishing.
  5. 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.