Skip to content

Commit d143c8b

Browse files
committed
Document the GitLab releases token as the dataset publishing one
The engine selected GitLab publishing with `OTA_ENGINE_GITLAB_TOKEN` while authenticating every request with `OTA_ENGINE_GITLAB_RELEASES_TOKEN`. Since OpenTermsArchive/engine#1287, publishing depends on the releases token only and `OTA_ENGINE_GITLAB_TOKEN` is no longer used.
1 parent b69912e commit d143c8b

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎content/api/cli.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ To also publish the dataset to configured platforms (GitHub releases, GitLab rel
6969
The dataset can be published to multiple platforms simultaneously:
7070

7171
- **GitHub releases**: Requires `OTA_ENGINE_GITHUB_TOKEN` environment variable
72-
- **GitLab releases**: Requires `OTA_ENGINE_GITLAB_TOKEN` environment variable (used only if GitHub token is not configured)
72+
- **GitLab releases**: Requires `OTA_ENGINE_GITLAB_RELEASES_TOKEN` environment variable (used only if GitHub token is not configured)
7373
- **data.gouv.fr**: Requires `OTA_ENGINE_DATAGOUV_API_KEY` environment variable. To set up data.gouv.fr publishing, see the [guide to publish datasets to data.gouv.fr]({{< relref "collections/how-to/publish-to-datagouv" >}}).
7474

7575
These environment variables can be defined in a [`.env` file]({{< relref "collections/reference/environment-variables" >}}).

‎content/collections/reference/environment-variables.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ This reference documentation details the environment variables used to configure
1313

1414
{{< refItem name="OTA_ENGINE_GITHUB_TOKEN" type="string" description="GitHub token for dataset publishing. If both GitHub and GitLab tokens are configured, GitHub takes precedence." />}}
1515

16-
{{< refItem name="OTA_ENGINE_GITLAB_TOKEN" type="string" description="GitLab token for dataset publishing. Used only if GitHub token is not configured." />}}
17-
18-
{{< refItem name="OTA_ENGINE_GITLAB_RELEASES_TOKEN" type="string" description="GitLab token for dataset releases." />}}
16+
{{< refItem name="OTA_ENGINE_GITLAB_RELEASES_TOKEN" type="string" description="GitLab token for dataset publishing. Used only if GitHub token is not configured." />}}
1917

2018
{{< refItem name="OTA_ENGINE_DATAGOUV_API_KEY" type="string" description="API key for data.gouv.fr dataset publishing." />}}
2119

0 commit comments

Comments
 (0)