diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ff30de1b3f203b51fc9484eefbe8c1893f97c43..03e82b9cac718f955bc5e1d6018f8786bf1cf9a6 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 +