Commit ea4c07e4 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Met à jour le .gitlab-ci.yml.

No related merge requests found
Showing with 25 additions and 23 deletions
+25 -23
include: .the-job:
- local: ".gitlab/please-build-ci.yml" tags: [docker]
image: node:12-slim
reveal.js: variables:
extends: .please-build NPM_CONFIG_CACHE: "$CI_PROJECT_DIR/.npm"
stage: build before_script:
- node --version
- npm --version
- npm install
script: script:
- please build --noupdate -p :reveal.js - npm run lint
- mv plz-out/gen/reveal.js reveal.js - npm run build
artifacts: artifacts:
name: reveal.js-$CI_COMMIT_REF_SLUG name: reveal_js-$CI_COMMIT_REF_SLUG
paths: paths:
- reveal.js/ - public/
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- "$NPM_CONFIG_CACHE"
build:
extends: .the-job
rules:
- if: $CI_COMMIT_TAG == ''
pages: pages:
stage: deploy extends: .the-job
tags: [docker] rules:
image: busybox - if: $CI_COMMIT_TAG != ''
dependencies: [reveal.js]
script:
- mv reveal.js public
artifacts:
name: pages-$CI_COMMIT_REF_SLUG
paths:
- public
only:
refs:
- tags
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment