forked from AuroraMiddleware/gtk
ci: Trigger a pages build
Do not publish the API reference directly, but trigger a CI pipeline for the docs-gtk-org branch, which will then do the publishing.
This commit is contained in:
parent
95f2634ea9
commit
316cc55e69
@ -7,6 +7,7 @@ stages:
|
|||||||
- analysis
|
- analysis
|
||||||
- docs
|
- docs
|
||||||
- flatpak
|
- flatpak
|
||||||
|
- publish
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
.cache-paths: &cache-paths
|
.cache-paths: &cache-paths
|
||||||
@ -337,14 +338,11 @@ reference:
|
|||||||
paths:
|
paths:
|
||||||
- _reference
|
- _reference
|
||||||
|
|
||||||
pages:
|
publish-docs:
|
||||||
stage: deploy
|
stage: publish
|
||||||
needs: ['reference']
|
needs: ['reference']
|
||||||
script:
|
script:
|
||||||
- mv _reference/ public/
|
- "curl -X POST -F token=${PAGES_TRIGGER_TOKEN} -F ref=docs-gtk-org https://gitlab.gnome.org/api/v4/projects/665/trigger/pipeline"
|
||||||
- cp .gitlab-ci/pages/* public/
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- public
|
|
||||||
only:
|
only:
|
||||||
- master
|
refs:
|
||||||
|
- master
|
||||||
|
Loading…
Reference in New Issue
Block a user