# GitHub Actions (default)
./dtcw4 local generateCICD
# or explicitly choose a provider
./dtcw4 local generateCICD --provider gitlab
generateCICD
About This Task
This task scaffolds a ready-to-use CI/CD pipeline that builds your documentation with dtcw4 and publishes it.
The generated pipeline reflects the v4 architecture — it bootstraps docToolchain with the dtcw4 wrapper, with no Gradle and no legacy Docker image.
Two providers are supported:
| Provider | File written | Publishes to |
|---|---|---|
|
|
GitHub Pages |
|
|
GitLab Pages |
Setup and Configuration
The task refuses to overwrite an existing pipeline file. Pass --force to replace it:
./dtcw4 local generateCICD --provider github --force
The generated pipeline:
-
installs Temurin Java 25,
-
caches
~/.doctoolchainbetween runs, -
downloads
dtcw4, installs docToolchain, and runsgenerateSite, -
uploads the microsite from
build/microsite/outputto Pages.
After Generating
-
Commit the generated file.
-
GitHub: enable Pages under Settings > Pages > Source: GitHub Actions.
-
GitLab: the
pagesjob publishes automatically on the default branch.
Further Reading and Resources
-
generateSite — the task the pipeline runs
Source
View the source of this task: scripts/generateCICD.groovy on GitHub
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.