[gtk/docs-trigger] ci: Trigger a pages build




commit 39f1ba5891655b53adc7f9579f8e5fddd6b2da66
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Jul 31 17:08:56 2021 +0100

    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.

 .gitlab-ci.yml | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ad6d2fd79f..c38f934a82 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ stages:
   - analysis
   - docs
   - flatpak
-  - deploy
+  - publish
 
 .cache-paths: &cache-paths
   paths:
@@ -337,14 +337,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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]