summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2021-07-31 17:08:56 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2021-07-31 17:13:27 +0100
commit316cc55e6932869179a233d6a59cabdbb1081f2e (patch)
treeafa961b9fc64f8cf5d38d4fc332797f4464e4891 /.gitlab-ci.yml
parent95f2634ea9eaa5c14e2c904120f0e58915ba1c4d (diff)
downloadgtk+-316cc55e6932869179a233d6a59cabdbb1081f2e.tar.gz
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.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml14
1 files changed, 6 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ad6d2fd79f..8e42829349 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,6 +7,7 @@ stages:
- analysis
- docs
- flatpak
+ - publish
- deploy
.cache-paths: &cache-paths
@@ -337,14 +338,11 @@ reference:
paths:
- _reference
-pages:
- stage: deploy
+publish-docs:
+ stage: publish
needs: ['reference']
script:
- - mv _reference/ public/
- - cp .gitlab-ci/pages/* public/
- artifacts:
- paths:
- - public
+ - "curl -X POST -F token=${PAGES_TRIGGER_TOKEN} -F ref=docs-gtk-org https://gitlab.gnome.org/api/v4/projects/665/trigger/pipeline"
only:
- - master
+ refs:
+ - master