From 94151ac7605c8abdc73cd4c176397fc5ed094925 Mon Sep 17 00:00:00 2001
From: Stefan Hynek <stefan.hynek@uni-goettingen.de>
Date: Thu, 11 Jun 2020 17:19:49 +0200
Subject: [PATCH] ci(gitlab): add release job; dry run and debug only

---
 .gitlab-ci.yml | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5ff30de..03e82b9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,19 +12,19 @@ create_overall_md:
   stage: build
   image: alpine:3.7
   script:
-    - cat technical-reference-main.txt | while read LINE; do cat $LINE >> rdd-technical-reference.md ; done
+    - cat technical-reference-main.txt | while read LINE; do cat $LINE >> technical-reference.md ; done
   artifacts:
     expose_as: 'full markdown document'
     paths:
-      - rdd-technical-reference.md
+      - technical-reference.md
 
 tests:
   stage: test
   image: node:10
   before_script:
-    - npm install
+    - npm ci
   script:
-    - npx markdownlint -o markdownlint-report.txt rdd-technical-reference.md
+    - npx markdownlint -o markdownlint-report.txt technical-reference.md
   allow_failure: true
   artifacts:
     expose_as: 'markdownlint report'
@@ -40,9 +40,21 @@ create_pdf:
   before_script:
     - pandoc --version
   script:
-    - pandoc --template=rdd.latex rdd-technical-reference.md -o rdd-technical-reference.pdf
+    - pandoc --template=rdd.latex technical-reference.md -o technical-reference.pdf
   artifacts:
     paths:
-      - rdd-technical-reference.pdf
+      - technical-reference.pdf
   only:
     - master
+
+release:
+  stage: release
+  image: node:10
+  before_script:
+    - npm ci
+  script:
+    - npx semantic-release --dry-run --debug
+  only:
+    - feat/#26-provide-pdf-with-a-semantic-release
+    - master
+
-- 
GitLab