Skip to content
Snippets Groups Projects
Commit 94151ac7 authored by Stefan Hynek's avatar Stefan Hynek :drooling_face:
Browse files

ci(gitlab): add release job; dry run and debug only

parent fe8a3953
No related branches found
No related tags found
1 merge request!28Resolve "provide pdf with a semantic release"
Pipeline #139324 passed with warnings
...@@ -12,19 +12,19 @@ create_overall_md: ...@@ -12,19 +12,19 @@ create_overall_md:
stage: build stage: build
image: alpine:3.7 image: alpine:3.7
script: 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: artifacts:
expose_as: 'full markdown document' expose_as: 'full markdown document'
paths: paths:
- rdd-technical-reference.md - technical-reference.md
tests: tests:
stage: test stage: test
image: node:10 image: node:10
before_script: before_script:
- npm install - npm ci
script: script:
- npx markdownlint -o markdownlint-report.txt rdd-technical-reference.md - npx markdownlint -o markdownlint-report.txt technical-reference.md
allow_failure: true allow_failure: true
artifacts: artifacts:
expose_as: 'markdownlint report' expose_as: 'markdownlint report'
...@@ -40,9 +40,21 @@ create_pdf: ...@@ -40,9 +40,21 @@ create_pdf:
before_script: before_script:
- pandoc --version - pandoc --version
script: 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: artifacts:
paths: paths:
- rdd-technical-reference.pdf - technical-reference.pdf
only: only:
- master - 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment